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

Handle ForeignKey String References #272

Merged
merged 12 commits into from Jul 21, 2020

Conversation

alejandro-angulo
Copy link
Contributor

@alejandro-angulo alejandro-angulo commented Jul 12, 2020

Possible solution to #243 . This change leverages Django's model name resolution to handle ForeignKey string references.

@coveralls
Copy link

coveralls commented Jul 12, 2020

Pull Request Test Coverage Report for Build 1133

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 88.553%

Totals Coverage Status
Change from base Build 1115: 0.2%
Covered Lines: 673
Relevant Lines: 760

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1117

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 88.657%

Totals Coverage Status
Change from base Build 1115: 0.3%
Covered Lines: 680
Relevant Lines: 767

💛 - Coveralls

README.rst Outdated Show resolved Hide resolved
pylint_django/transforms/foreignkey.py Outdated Show resolved Hide resolved
pylint_django/tests/test_app/apps.py Outdated Show resolved Hide resolved
pylint_django/tests/test_func.py Show resolved Hide resolved
pylint_django/transforms/foreignkey.py Outdated Show resolved Hide resolved
pylint_django/tests/conftest.py Outdated Show resolved Hide resolved
pylint_django/transforms/foreignkey.py Show resolved Hide resolved
pylint_django/transforms/foreignkey.py Show resolved Hide resolved
pylint_django/transforms/foreignkey.py Outdated Show resolved Hide resolved
Making the django imports top-level imports caused the build to break
(django not installed check failed).
@atodorov atodorov merged commit ec4f005 into pylint-dev:master Jul 21, 2020
@ajhodges
Copy link

https://github.com/PyCQA/pylint-django#known-issues

I think the Readme can probably be updated now 👍👍

@515hikaru
Copy link

@alejandro-angulo I was just in trouble facing this problem. Thank you for fixing it!

@alejandro-angulo alejandro-angulo deleted the handle-string-fk branch July 26, 2020 01:24
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

Successfully merging this pull request may close these issues.

None yet

5 participants