Commits

Anonymous committed 7ebe10f

Need to pass the user in there

  • Participants
  • Parent commits 61b6791

Comments (0)

Files changed (1)

registration/models.py

         # this when both are present.
         if hasattr(settings, 'AUTH_PROFILE_MODULE') and hasattr(settings, 'DEFAULT_AUTH_PROFILE_VALUES'):
             auth_profile_mod = models.get_model(*settings.AUTH_PROFILE_MODULE.split('.'))
-            new_auth_profile = auth_profile_mod._default_manager.create(**settings.DEFAULT_AUTH_PROFILE_VALUES)
+            new_auth_profile = auth_profile_mod._default_manager.create(user=new_user, **settings.DEFAULT_AUTH_PROFILE_VALUES)
         
         if send_email:
             from django.core.mail import send_mail