Petar schrieb: > Dear someone, > > I have a ModelForm for my User (standard django) model. I want to > check if the email is unique so I created a clean_email method which > works fine. The only problem is that I only want to check the email > address when it's changed. > > Is their a way to get the 'initial' value of the email formfield and > only perform a check if it has changed? > >
I wrote a snippet which checks if a form has changed. Maybe it helps you: http://www.djangosnippets.org/snippets/621/ Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---