django-fritzconnection_ynh/conf/setup_user.py

9 lines
234 B
Python
Raw Permalink Normal View History

2022-04-02 17:44:57 +02:00
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