mirror of https://github.com/django/django.git
Fixed small regression from 51aa000378
.
A test failed if the path to the Django checkout contained a dot. Refs #20485.
This commit is contained in:
parent
164c67c831
commit
6900cb79dc
|
@ -172,7 +172,7 @@ class Command(BaseCommand):
|
||||||
ser_fmts = serializers.get_public_serializer_formats() if ser_fmt is None else [ser_fmt]
|
ser_fmts = serializers.get_public_serializer_formats() if ser_fmt is None else [ser_fmt]
|
||||||
|
|
||||||
# Check kept for backwards-compatibility; it doesn't look very useful.
|
# Check kept for backwards-compatibility; it doesn't look very useful.
|
||||||
if '.' in fixture_name:
|
if '.' in os.path.basename(fixture_name):
|
||||||
raise CommandError(
|
raise CommandError(
|
||||||
"Problem installing fixture '%s': %s is not a known "
|
"Problem installing fixture '%s': %s is not a known "
|
||||||
"serialization format." % tuple(fixture_name.rsplit('.')))
|
"serialization format." % tuple(fixture_name.rsplit('.')))
|
||||||
|
|
Loading…
Reference in New Issue