I have sorted it out using a different approach 'AbstractUser'. Thanks
On Tue, Oct 30, 2018, 12:19 PM Adrian Chipukuma
wrote:
> Thanks for the help. Though if I remove the declarations of the
> first_name, last_name and email. Then I will not be able to see these in
> the Register form
Thanks for the help. Though if I remove the declarations of the
first_name, last_name and email. Then I will not be able to see these in
the Register form.. The fields password1 and password2 are just working
well and can be saved... The issue is on the first_name, last_name and
email fie
Remove declaration of first_name, last_name & email in Form calss.
class SignUpForm(UserCreationForm):
class meta():
model = User
fields = ('username', 'first_name', 'last_name', 'email',
'password1', 'password2', )
And while Saving the form, follow below steps.
if form.is_v
Hello,
I am new to Django and enjoying the learning process, unfortunately I am
stuck, and I need expert guidance.
I am learning through developing a User Authentication System. The system
is supposed to have a user registration functionality, login, user profile
editing and logout. I have managed
4 matches
Mail list logo