mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-14 11:06:23 +01:00
[ADD] sentinel user and migrate fleetactivitytracking
This commit is contained in:
15
allianceauth/framework/api/user.py
Normal file
15
allianceauth/framework/api/user.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
Alliance Auth User API
|
||||
"""
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
def get_sentinel_user() -> User:
|
||||
"""
|
||||
Get the sentinel user or create one
|
||||
|
||||
:return:
|
||||
"""
|
||||
|
||||
return User.objects.get_or_create(username="deleted")[0]
|
||||
Reference in New Issue
Block a user