I have a field:
revision = models.IntegerField(default=0)
on a model.

I assumed that if I set a default value for a field, I am free to
create an object that does not set 'revision', and save it.
However, this produces an IntegrityError:
IntegrityError: XXX.revision may not be NULL

When I check the get_default value for this field, I get 0. Why is
this field not set during a save()?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to