Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed small regression from 51aa000.

A test failed if the path to the Django checkout contained a dot.

Refs #20485.
  • Loading branch information...
commit 6900cb79dcbc502e0b18476e53ad493b7069ffb8 1 parent 164c67c
Aymeric Augustin authored June 03, 2013
2  django/core/management/commands/loaddata.py
@@ -172,7 +172,7 @@ def _find_fixtures(self, fixture_label):
172 172
         ser_fmts = serializers.get_public_serializer_formats() if ser_fmt is None else [ser_fmt]
173 173
 
174 174
         # Check kept for backwards-compatibility; it doesn't look very useful.
175  
-        if '.' in fixture_name:
  175
+        if '.' in os.path.basename(fixture_name):
176 176
             raise CommandError(
177 177
                     "Problem installing fixture '%s': %s is not a known "
178 178
                     "serialization format." % tuple(fixture_name.rsplit('.')))

0 notes on commit 6900cb7

Please sign in to comment.
Something went wrong with that request. Please try again.