In my app i have the AUTH_PROFILE_MODULE
set to users.UserProfile
. This UserProfile has a function create
which should be called, when a new user registers, and then create the UserProfile entry.
According to the django-registration documentation all in need to do is setting the profile_callback
entry in my urls.py. Mine looks like this:
url(r'^register/$', register, {'form_class': RecaptchaRegistrationForm,
'profile_callback': UserProfile.objects.create,
'backend': 'registration.backends.default.DefaultBackend',},
name='registration_register')
but I get this error:
Exception Value: register() got an unexpected keyword argument 'profile_callback'
So where do I have to put this, to make it work?