-
Notifications
You must be signed in to change notification settings - Fork 117
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
FK as string from models as package fails with "UnboundLocalError: local variable 'key_cls' referenced before assignment" #229
Conversation
Pull Request Test Coverage Report for Build 681
💛 - Coveralls |
b6f1b11
to
859d658
Compare
859d658
to
87f9b4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks very good, minor changes requested.
pylint_django/tests/input/models/func_noerror_foreign_key_key_cls_unbound.py
Outdated
Show resolved
Hide resolved
@imomaliev is this by any chance the fix for #198 ? If so please add 'Fix #198' to one of the commit messages and GitHub will close it automatically. |
@atodorov made requested changes and moved tests to input folder, |
Just received the same error in |
Also here - #232 |
Also posted in #232 but no response yet. But I've narrowed it down to OneToOne relations. On my github there is a project that will trigger the error. Hope it helps in finding out the root cause: https://github.com/zout/django-pylint-issue |
Currently ForeignKey inferring fails with
UnboundLocalError: local variable 'key_cls' referenced before assignment
for cases when models is a python package, theto
argument is a string that is used in this patternapp.Model
and also there is some otherbool
const likenull=True
right afterto
.