Re: has_changed not working for Data field in modelForm

2011-02-10 Thread Sarang
Further update. I think the problem is the database (GAE Datastore) stores the month as "01" whereas the SelectDataWidget that I am using (from django/forms/extras) is returning "1" for the month and hence they do not compare! Any ideas how I can fix the select data widget? Thanks Sarang -- Y

has_changed not working for Data field in modelForm

2011-02-10 Thread Sarang
I noticed that for a form, has_changed is always returning true. On further investigation, I found that the changed_data was pointing to the Date field in the form. That took me to forms._get_changed_data function: for name, field in self.fields.items(): prefixed_name