Django

Code

Ticket #9011 (closed: fixed)

Opened 4 months ago

Last modified 2 months ago

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

Reported by: jlrivitti@gmail.com Assigned to: nobody
Milestone: Component: Core framework
Version: 1.0 Keywords:
Cc: andrehcampos@gmail.com Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

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

loaddata_file_format_invalid.patch (1.9 kB) - added by jlrivitti@gmail.com on 09/10/08 07:38:40.

Change History

09/10/08 07:38:40 changed by jlrivitti@gmail.com

  • attachment loaddata_file_format_invalid.patch added.

11/06/08 05:19:14 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

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

11/06/08 05:27:36 changed 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@gmail.com for the report and initial patch.

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


Add/Change #9011 ("File format may be invalid" bug in management.commands.loaddata)




Change Properties
Action