pylint-django icon indicating copy to clipboard operation
pylint-django copied to clipboard

Refactor: automatically get values for MANAGER_ATTRS, QS_ATTRS, etc.

Open atodorov opened this issue 4 years ago • 1 comments

From the bottom of https://github.com/PyCQA/pylint-django/pull/299#issuecomment-755181122

MANAGER_ATTRS, QS_ATTRS, MODELADMIN_ATTRS, MODEL_ATTRS, FIELD_ATTRS and the rest of the lists containing auto-generated attributes from Django can probably be generated at runtime instead of hard-coding them one by one.

transforms/foreignkey.py and checkers/foreign_key_strings.py already call django.setup() and README already asks users to specify DJANGO_SETTINGS_MODULE=your.app.settings before running pylint-django.

atodorov avatar Jan 06 '21 09:01 atodorov

Depends on #290

atodorov avatar Jan 06 '21 09:01 atodorov