Hi,
        I have a model with a field defined as

created = models.DateTimeField(auto_now_add = True)

Problem is that when an object of this type is updated, the UPDATE query
 has a clause like

"created"=NULL

which is violating the NOT NULL constraint on the field. I was under the
impression that the auto_now_add field was only supposed to be set when
the record was first inserted, and to be left alone from then on. What
am I doing wrong here?

Regards
-fawad

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to