django_example_ynh/conf/setup_user.py

9 lines
176 B
Python
Raw Normal View History

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