tags:

views:

108

answers:

2

Please help me. Thanks!

+1  A: 

You could always modify this line to:

new_user = RegistrationProfile.objects.create_inactive_user(username=self.cleaned_data['username'],
                                       password=self.cleaned_data['password1'],
                                       email=self.cleaned_data['email'],
                                       profile_callback=profile_callback,
                                       send_email = False)

Or you could change this line to:

def create_inactive_user(self, username, password, email,
                         send_email=False, profile_callback=None):
Dominic Rodger
You need to call activate_user though (or else the user's account will be unusable)
Jiaaro
In new version of django-register, file forms.py doesn't like this so far. Check this link: http://bitbucket.org/ubernostrum/django-registration/src/tip/registration/forms.py
Tran Tuan Anh
A: 
Jiaaro
Did I get it wrong? I've not tried my code out, just took a look at the code in django-registration.
Dominic Rodger
No I actually just edited my answer because I think both of our solutions are necessary :)
Jiaaro