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
to
In addition to not recognising the model when it's supplied as a string, the following does not work
related = models.ForeignKey(to=Other, on_delete=models.SET_NULL)
the linter works as expected with
related = models.ForeignKey(Other, on_delete=models.SET_NULL)
Is it possible to allow kwarg usage? I prefer being explicit so that it's easy to find all references to a model.
The text was updated successfully, but these errors were encountered:
Fixes pylint-dev#223 Support ForeignKey relations with to keyword
ff45cdb
92f3975
No branches or pull requests
In addition to not recognising the model when it's supplied as a string, the following does not work
related = models.ForeignKey(to=Other, on_delete=models.SET_NULL)
the linter works as expected with
related = models.ForeignKey(Other, on_delete=models.SET_NULL)
Is it possible to allow kwarg usage? I prefer being explicit so that it's easy to find all references to a model.
The text was updated successfully, but these errors were encountered: