Commits

Michael Elsdörfer  committed 75e862f

Some imports got lost in the merge; Our site tests noticed the problems.

  • Participants
  • Parent commits af6cc10

Comments (0)

Files changed (3)

File registration/forms.py

 
     Validates that the requested username is not already in use, and
     requires the password to be entered twice to catch typos.
-    
+
     Subclasses should feel free to add any additional validation they
     need, but should avoid defining a ``save()`` method -- the actual
     saving of collected user data is delegated to the active
     registration backend.
-    
+
     """
     username = forms.RegexField(regex=r'^\w+$',
                                 max_length=30,
                                 label=_("Password"))
     password2 = forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict, render_value=False),
                                 label=_("Password (again)"))
-    
+
     def clean_username(self):
         """
         Validate that the username is alphanumeric and is not already
                    'googlemail.com', 'hotmail.com', 'hushmail.com',
                    'msn.com', 'mail.ru', 'mailinator.com', 'live.com',
                    'yahoo.com']
-    
+
     def clean_email(self):
         """
         Check the supplied email address against a list of known free
     key = forms.CharField(label=_(u'activation key'))
 
 
+from registration.models import RegistrationProfile
+
+
 class RestorePasswordForm(forms.Form):
     """
     Base form for forms for restoring passwords. Provides all the logic

File registration/models.py

             not). Consult the documentation for the Django sites
             framework for details regarding these objects' interfaces.
 
-		The paths to the templates can be customized using the
-		``email_subject_template`` and ``email_template`` parameters.
+		  The paths to the templates can be customized using the
+		  ``email_subject_template`` and ``email_template`` parameters.
         """
 
         ctx_dict = { 'activation_key': self.activation_key,

File registration/views.py

 
 from django.shortcuts import redirect
 from django.conf import settings
+from django.http import HttpResponseRedirect
 from registration.template import render_to_response
 from django.template import RequestContext