mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
9 lines
176 B
Python
9 lines
176 B
Python
|
|
||
|
def setup_demo_user(user):
|
||
|
"""
|
||
|
The django_ynh DEMO use the Django admin. So we need a "staff" user ;)
|
||
|
"""
|
||
|
user.is_staff = True
|
||
|
user.save()
|
||
|
return user
|