pylint-django
pylint-django copied to clipboard
Refactor: automatically get values for MANAGER_ATTRS, QS_ATTRS, etc.
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.
Depends on #290