From 6900cb79dcbc502e0b18476e53ad493b7069ffb8 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 3 Jun 2013 11:48:03 +0200 Subject: [PATCH] Fixed small regression from 51aa000378. A test failed if the path to the Django checkout contained a dot. Refs #20485. --- django/core/management/commands/loaddata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index bfcea35d5c..45f25c21db 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -172,7 +172,7 @@ class Command(BaseCommand): 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. - if '.' in fixture_name: + if '.' in os.path.basename(fixture_name): raise CommandError( "Problem installing fixture '%s': %s is not a known " "serialization format." % tuple(fixture_name.rsplit('.')))