django-for-runners_ynh/conf/setup_user.py

9 lines
234 B
Python
Raw Permalink Normal View History

2021-01-17 11:47:00 +01:00
def setup_project_user(user):
"""
All users used the Django admin, so we need to set the "staff" user flag.
2021-10-10 14:35:06 +02:00
Called from django_yunohost_integration.sso_auth
2021-01-17 11:47:00 +01:00
"""
user.is_staff = True
user.save()
return user