Re: Admin site - unticking a field stores date in model

2010-05-22 Thread David
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

Re: Admin site - unticking a field stores date in model

2010-05-22 Thread Shawn Milochik
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

Admin site - unticking a field stores date in model

2010-05-22 Thread David
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