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

Add OneToOneFieldChecker #950


Use R4531 code for one-to-one-field-checker.

Fixes #735
  • Loading branch information...
jorgii committed May 28, 2019
commit 8a1c1cc60b2b19f4c70ec38a19db1ab8ae7e323a
@@ -8,7 +8,7 @@ class OneToOneFieldChecker(checkers.BaseChecker):

name = 'one-to-one-field-checker'

msgs = {'E4493': ("Do not use OneToOneField",
msgs = {'R4531': ("Do not use OneToOneField",
"Do not use OneToOneField because it does not play well with the"
"history framework (this relation does not have enabled history")}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.