We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using pylint django if in model __str__ method a field is returned pylint cannot recognize that this field should be a string.
__str__
from django.db import models class Model(models.Model): field = models.CharField(max_length=10) def __str__(self): # E0307 return self.field
It would be nice if this plugin was able to detect if a field which inherits from CharField or TextField is used and suppress this error.
CharField
TextField
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using pylint django if in model
__str__
method a field is returned pylint cannot recognize that this field should be a string.It would be nice if this plugin was able to detect if a field which inherits from
CharField
orTextField
is used and suppress this error.The text was updated successfully, but these errors were encountered: