fix the staff username field to email
This commit is contained in:
parent
0a38ee0a28
commit
ccc3217b03
@ -2658,7 +2658,7 @@ class UserCreateView(
|
|||||||
password = "Tenhal@123"
|
password = "Tenhal@123"
|
||||||
|
|
||||||
user = User.objects.create_user(
|
user = User.objects.create_user(
|
||||||
username=form.cleaned_data["name"], email=email, password=password
|
username=email, email=email, password=password
|
||||||
)
|
)
|
||||||
user.is_staff = True
|
user.is_staff = True
|
||||||
user.save()
|
user.save()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user