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

'No __unicode__ method on model' even if parent class has __unicode__ method #14

Closed
carlio opened this issue Aug 27, 2014 · 1 comment
Closed

Comments

@carlio
Copy link
Collaborator

carlio commented Aug 27, 2014

For example:

class MyModel(models.Model):
    def __unicode__(self):
        return str(self.id)

class MySubclassModel(MyModel):
    pass

This will generate a warning for MySubclassModel about no __unicode__ method specified.

carlio added a commit that referenced this issue Sep 14, 2014
…are now more nuanced: if a parent declares __unicode__ then the warning code will be W5103 instead of W5101, allowing people finer grained control of whether they want that error message or not
@carlio
Copy link
Collaborator Author

carlio commented Sep 14, 2014

Fixed, will be available in 0.5 release

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