Closed trueman61 closed 4 years ago
Hi!
To add the password to the newly created user you need to access to the Django user, as the Member model does not hold this information.
To access the user, you can use the django_user
method:
member = Member.objects.create(first_name=member) member.django_user.set_password(“password”)
Thank you so much.
We can create fields such as username, e-mail. However, the password field is not available. When I add a member to the member add page, I want to set the password on the page. How can I do it?
forms.py
views.py