CONT: fixed the previous changes.

This commit is contained in:
2019-01-30 16:35:37 +01:00
parent 7667277862
commit f0e225c5fd
11 changed files with 79 additions and 59 deletions

View File

@@ -7,6 +7,8 @@ from django.db.models import Q
app_config = apps.get_containing_app_config(__package__)
logger = logging.getLogger(__name__)
# TODO: most of the functions here are auth stuff.
def get_system_user():
return get_user_model().objects.get_or_create(username='-system-')[0]