Skip to content

Commit 927dc1e

Browse files
carlioatodorov
authored andcommitted
[refs #278] Adding missing decorator to specifically declare an error ID when importing django User directly
1 parent ae4e70b commit 927dc1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pylint_django/checkers/auth_user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def visit_const(self, node):
2626
if node.value == 'auth.User':
2727
self.add_message('hard-coded-auth-user', node=node)
2828

29+
@utils.check_messages('imported-auth-user')
2930
def visit_importfrom(self, node):
3031
if node.modname == 'django.contrib.auth.models':
3132
for imported_names in node.names:

0 commit comments

Comments
 (0)