django_example_ynh/conf/setup_user.py
2020-12-28 18:52:29 +01:00

8 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