Skip to content

Commit 297ac57

Browse files
committed
Merge pull request #68 from danni/app_name
app_name is a valid constant in urls.py
2 parents 5431b9b + 2a90640 commit 297ac57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def is_templatetags_module_valid_constant(node):
284284

285285
def is_urls_module_valid_constant(node):
286286
"""Suppress warnings for valid constants in urls module."""
287-
if node.name not in ('urlpatterns', ):
287+
if node.name not in ('urlpatterns', 'app_name'):
288288
return False
289289

290290
parent = node.parent

0 commit comments

Comments
 (0)