mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed user setup staff permission
This commit is contained in:
@@ -283,7 +283,8 @@ def setup(request):
|
||||
else:
|
||||
user = User(
|
||||
username=form.cleaned_data['name'],
|
||||
is_superuser=True
|
||||
is_superuser=True,
|
||||
is_staff=True
|
||||
)
|
||||
try:
|
||||
validate_password(form.cleaned_data['password'], user=user)
|
||||
|
||||
Reference in New Issue
Block a user