auto_now_add issue

30 views
Skip to first unread message

Ajith Kumar

unread,
Oct 17, 2012, 7:54:00 AM10/17/12
to google-a...@googlegroups.com
Hi All,

Hope all are fine.

I have a issue. Hope some of you can give me a solution.

In a model, I have given auto_now_add = True for a field creationDate. I have a clean_data for another field with a check if(creationDate). I have this check because some records in my datastore don't have creationDate.

My issue is that, when the records with no creationDate, django(that I am using) fills the creationDate with current date. So I can't validate the field. I thought it would return None if there is no data.

How can I return the actual value(if value->then value, if no value -> then None) for the fields having auto_now_add = True?

Thanks,
Ajith

Moises Belchin

unread,
Oct 17, 2012, 8:01:40 AM10/17/12
to google-a...@googlegroups.com
We got the same error.

Anybody knows something ?

Regards.
Moisés Belchín.



2012/10/17 Ajit <ajith...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/RQurw1DpZmQJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Moises Belchin

unread,
Oct 17, 2012, 8:05:47 AM10/17/12
to google-a...@googlegroups.com
Sorry for the inconvenient CD now works well for us.

Regards
Moisés Belchín.



2012/10/17 Moises Belchin <moises...@gmail.com>
Reply all
Reply to author
Forward
0 new messages