Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#9011 closed (fixed)

"File format may be invalid" bug in management.commands.loaddata

Reported by: jlrivitti@… Owned by: nobody
Component: Core (Other) Version: 1.0
Severity: Keywords:
Cc: andrehcampos@… Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

If you try to load more than one fixture, one without any object, the output maybe wrong.

Eg. account with zero object, and blog with any number of objects.

>>> from django.core import management
>>> management.call_command('loaddata', *['account', 'blog'], verbosity=0)
No fixture data found for 'blog'. (File format may be invalid.)

Attachments (1)

loaddata_file_format_invalid.patch (1.9 KB) - added by jlrivitti@… 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by jlrivitti@…

comment:1 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [9357]) Fixed #9011 -- Corrected handling of fixture files that contain errors to correctly report the broken fixture name. Thanks to jlrivitti@… for the report and initial patch.

comment:2 Changed 7 years ago by russellm

(In [9359]) [1.0.X] Fixed #9011 -- Corrected handling of fixture files that contain errors to correctly report the broken fixture name. Thanks to jlrivitti@… for the report and initial patch.

Merge of [9357] and [9358] from trunk.

Note: See TracTickets for help on using tickets.
Back to Top