Opened 16 years ago

Closed 16 years ago

Last modified 16 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: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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@… 16 years ago.

Download all attachments as: .zip

Change History (3)

by jlrivitti@…, 16 years ago

comment:1 by Russell Keith-Magee, 16 years ago

Resolution: fixed
Status: newclosed

(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 by Russell Keith-Magee, 16 years ago

(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