Django

Code

Ticket #6229 (closed: duplicate)

Opened 9 months ago

Last modified 9 months ago

loaddata should allow null for BooleanField(null=true)

Reported by: odonian Assigned to: nobody
Milestone: Component: django-admin.py
Version: SVN Keywords: loaddata dumpdata BooleanField null
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

If I have a model with a BooleanField?(blank=True, null=True), then proceed to run dumpdata, it seems that loaddata will fail with an error.

Problem installing fixture '/foo/bar/datadump.json': [u'This value must be either True or False.']

I hand-edited the fixture file to change all the "null" values for the said BooleanField? field to "false" and the fixture loads fine. But methinks loaddata should allow nulls when the models.py definition allows it.

Attachments

Change History

12/17/07 15:47:24 changed by brosner

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

Duplicate of #5563.


Add/Change #6229 (loaddata should allow null for BooleanField(null=true))




Change Properties
Action