mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Remove unnecessary type check - conversion
This commit is contained in:
@@ -69,11 +69,7 @@ class Command(BaseCommand):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
# Make sure the prefixes are a list
|
|
||||||
prefixes = options["prefixes"]
|
prefixes = options["prefixes"]
|
||||||
if prefixes:
|
|
||||||
prefixes = prefixes if isinstance(prefixes, list) else [prefixes]
|
|
||||||
|
|
||||||
url_patterns = get_url_patterns(prefixes=prefixes)
|
url_patterns = get_url_patterns(prefixes=prefixes)
|
||||||
|
|
||||||
if not url_patterns:
|
if not url_patterns:
|
||||||
|
|||||||
Reference in New Issue
Block a user