added the missing return statements in clean functions of forms .
--- 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)