On Thu, Feb 25, 2010 at 3:03 PM, ducu <alexandru.stan...@gmail.com> wrote:
> Btw, has_changed() doesn't seem to work on non-model forms, does it? > > Yes, it does: >>> from django import forms >>> class AForm(forms.Form): ... x = forms.IntegerField() ... >>> af = AForm({'x': u'1'}, initial={'x': 1}) >>> af.has_changed() False >>> af = AForm({'x': u'1'}, initial={'x': 0}) >>> af.has_changed() True Karen -- 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.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.