added the missing return statements in clean functions of forms .
authornishanth
Tue, 13 Apr 2010 12:07:44 +0530
changeset 22 737ec98cf6df
parent 21 a0f4aba61275
child 23 42e2a810e1c8
added the missing return statements in clean functions of forms .
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)