1. hejibo
  2. django-registration


ubernostrum  committed e20c46a

Make the profile_callback pass the user as a keyword argument

  • Participants
  • Parent commits d452def
  • Branches default

Comments (0)

Files changed (1)

File registration/models.py

View file
  • Ignore whitespace
         knows how to create and save an instance of that model with
         appropriate default values, and pass it as the keyword
         argument ``profile_callback``. This function should accept one
-        argument: the ``User`` to relate the profile to.
+        keyword argument: ``user``, the ``User`` to relate the profile
+        to.
         # Create the user.
         # Create site-specific profile, if specified.
         if profile_callback is not None:
-            profile_callback(new_user)
+            profile_callback(user=new_user)
         if send_email:
             from django.core.mail import send_mail