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')
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.