Thank you Shawn :-)
I'll give that a go.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.co
Sure. Just create the datetime field in your model and override the save()
function of the model to do what you want.
To facilitate this, just override __init__() of the model to store the value of
the boolean field upon instantiation so that, in save(), you know whether it
has changed.
Don't
Hello
If I have a checkbox field for expiration, is there a built-in way I
could store the date that this field is ticked in a datetimefield in
the same model ? and also clear this entry when the checkbox is
unticked ?
Thank you
--
You received this message because you are subscribed to the Goo
3 matches
Mail list logo