# HG changeset patch # User nishanth # Date 1271140664 -19800 # Node ID 737ec98cf6df85cd6ba683eb9ec7e864cc647780 # Parent a0f4aba61275789494175e696b69eb74bd833476 added the missing return statements in clean functions of forms . diff -r a0f4aba61275 -r 737ec98cf6df reg/forms.py --- a/reg/forms.py Tue Apr 13 12:05:38 2010 +0530 +++ b/reg/forms.py Tue Apr 13 12:07:44 2010 +0530 @@ -93,6 +93,8 @@ if not password == self.data['confirm_password']: raise forms.ValidationError("Passwords do not match") + return password + class EventCreateForm(forms.ModelForm): """ A form to create an event. """ @@ -138,6 +140,8 @@ except User.DoesNotExist: raise forms.ValidationError("This not a registered email. Please enter a valid email.") + return email + class PasswordChangeForm(forms.Form): old_password = forms.CharField(widget=forms.PasswordInput)