views:

420

answers:

1

I'm using Django-Registration and the form just has 3 fields (Username, Email, Password, and Re-password), but why I can't add last name and first name??

In the Form all is fine but the User Model just accepts 3 arguments:

new_user = User.objects.create_user(username, email, password)

but why I can't do that:

new_user = User.objects.create_user(username, email, password, first_name ,last_name)

The Django Documentation doesn't say anything about just 3 arguments; all tutorials on the net just use 3 arguments...

Why?? Or how will I make use of first and last name?

+2  A: 

I did it :

new_user = User.objects.create_user(username, email, password)
new_user.is_active = False
new_user.first_name = first_name
new_user.last_name = last_name
Asinox