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:
Aymeric Augustin 2013-06-03 11:48:03 +02:00
parent 164c67c831
commit 6900cb79dc
1 changed files with 1 additions and 1 deletions

View File

@ -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('.')))