mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Remove unnecessary type check - conversion
This commit is contained in:
parent
2850c2e6ad
commit
ebf7e9a31d
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user