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