1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scovie_ynh.git synced 2024-09-03 20:16:29 +02:00
scovie_ynh/conf/setup_user.py

11 lines
258 B
Python
Raw Permalink Normal View History

2024-01-18 14:19:07 +01:00
#!/usr/bin/env python3
2023-05-26 19:09:08 +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