diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-03 11:48:03 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-03 11:48:03 +0200 |
| commit | 6900cb79dcbc502e0b18476e53ad493b7069ffb8 (patch) | |
| tree | d0d00faf7021fafa1e8c55baad167c558498d97d | |
| parent | 164c67c831c0d71ff30e7a4d1c5f5e6ed0d2f178 (diff) | |
Fixed small regression from 51aa000378.
A test failed if the path to the Django checkout contained a dot.
Refs #20485.
| -rw-r--r-- | django/core/management/commands/loaddata.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('.'))) |
