]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/utils/forms.py
fix in email sender, it was aplitting the attachments, or creating multiple, don...
[osqa.git] / forum / utils / forms.py
index c54056cafc948f1c961bb2f042f2aa0fd16d3d63..552cf28a980ee80d604060158dc51c59ea21fe9b 100644 (file)
@@ -4,7 +4,7 @@ from django.utils.translation import ugettext as _
 from django.utils.safestring import mark_safe
 from django.conf import settings
 from django.http import str_to_unicode
-from django.contrib.auth.models import User
+from forum.models import User
 import urllib
 
 DEFAULT_NEXT = '/' + getattr(settings, 'FORUM_SCRIPT_ALIAS')
@@ -133,6 +133,10 @@ class SetPasswordForm(forms.Form):
                                 error_messages={'required':_('please, retype your password'),
                                                 'nomatch':_('sorry, entered passwords did not match, please try again')},
                                 )
+
+    def __init__(self, data=None, user=None, *args, **kwargs):
+        super(SetPasswordForm, self).__init__(data, *args, **kwargs)
+
     def clean_password2(self):
         """
         Validates that the two password inputs match.