mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #33949 -- Fixed fixture dirs duplicates with Path instances.
This commit is contained in:
committed by
Carlton Gibson
parent
7e6b537f5b
commit
903ac2f364
@@ -367,7 +367,7 @@ class Command(BaseCommand):
|
||||
for app_config in apps.get_app_configs():
|
||||
app_label = app_config.label
|
||||
app_dir = os.path.join(app_config.path, "fixtures")
|
||||
if app_dir in fixture_dirs:
|
||||
if app_dir in [str(d) for d in fixture_dirs]:
|
||||
raise ImproperlyConfigured(
|
||||
"'%s' is a default fixture directory for the '%s' app "
|
||||
"and cannot be listed in settings.FIXTURE_DIRS."
|
||||
|
||||
Reference in New Issue
Block a user