From dedb1eda4bf1fb32ed2bc39b0f15966e2594cfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Linds=C3=A4th?= Date: Wed, 15 Jul 2020 14:46:56 +0200 Subject: [PATCH] fixup! Rename variable to avoid confusion. --- django_extensions/management/commands/show_urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_extensions/management/commands/show_urls.py b/django_extensions/management/commands/show_urls.py index ea002d2f8..5e8eec931 100644 --- a/django_extensions/management/commands/show_urls.py +++ b/django_extensions/management/commands/show_urls.py @@ -121,9 +121,9 @@ def handle(self, *args, **options): raise CommandError("Error occurred while trying to load %s: %s" % (getattr(settings, urlconf), str(e))) view_functions = self.extract_views_from_urlpatterns(urlconf.urlpatterns) - for (func, regex, url_name, *deprecated) in view_functions: - if deprecated: - deprecated = deprecated[0] + for (func, regex, url_name, *dep_status) in view_functions: + if dep_status: + deprecated = bool(dep_status[0]) else: deprecated = False