Skip to content

Commit

Permalink
[refs #278] Adding missing decorator to specifically declare an error…
Browse files Browse the repository at this point in the history
… ID when importing django User directly
  • Loading branch information
carlio committed Aug 2, 2020
1 parent 7c85215 commit 0024665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pylint_django/checkers/auth_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def visit_const(self, node):
if node.value == 'auth.User':
self.add_message('hard-coded-auth-user', node=node)

@utils.check_messages('imported-auth-user')
def visit_importfrom(self, node):
if node.modname == 'django.contrib.auth.models':
for imported_names in node.names:
Expand Down

0 comments on commit 0024665

Please sign in to comment.