Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning doesn't work with multiple inheritance/mixins #59

Open
philipn opened this issue Jan 26, 2015 · 0 comments
Open

Versioning doesn't work with multiple inheritance/mixins #59

philipn opened this issue Jan 26, 2015 · 0 comments

Comments

@philipn
Copy link
Member

philipn commented Jan 26, 2015

From @mivanov on December 1, 2012 0:51

Something like this doesn't work, I think. Definitely doesn't work if MyModel is concrete subclass of abstract model.

class MyMixin(object):
    def save(self, *args, **kwargs):
        # do something
        super(MyMixin, self).save(*args, **kwargs)

class MyModel(MyMixin, models.Model):
    name = models.CharField()

Copied from original issue: localwiki/localwiki#384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant