views:

27

answers:

1

In the django admin I inserted a row by specifying 2 columns ( firstName, lastName ) and the description column had blank=True set.

I then tried mimicing this with fixtures because I have to import data from a legacy sql dump but I can't seem to avoid filling in a value for description. What is django doing different? Does it specify all columns and possibly specify an empty string or something that doesn't qualify as null?

+1  A: 

When you use a form to populate a row, any inputs that are empty give '', so the fields get filled with an empty string rather than NULL.

Ignacio Vazquez-Abrams