Commits

tejinderss  committed 6cb816a

reverting

  • Participants
  • Parent commits 7504a91

Comments (0)

Files changed (1)

File registration/models.py

         return False
 
     def create_inactive_user(self, username, email, password,
-                             site, send_email=True, active=False):
+                             site, send_email=True):
         """
         Create a new, inactive ``User``, generate a
         ``RegistrationProfile`` and email its activation key to the
 
         """
         new_user = get_user_model().objects.create_user(username, email, password)
-        if not active:
-            new_user.is_active = False
-            new_user.save()
+        new_user.is_active = False
+        new_user.save()
 
         registration_profile = self.create_profile(new_user)