django-for-runners_ynh/conf/setup_user.py
2021-10-10 16:19:47 +02:00

8 lines
234 B
Python

def setup_project_user(user):
"""
All users used the Django admin, so we need to set the "staff" user flag.
Called from django_yunohost_integration.sso_auth
"""
user.is_staff = True
user.save()
return user