Commit 2c1bf4a4 authored by Michal Čihař's avatar Michal Čihař

Ensure anonymous user has profile

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7080d388
......@@ -829,6 +829,8 @@ def create_groups(update):
username=ANONYMOUS_USER_NAME,
is_active=False,
)
# Ensure anonymous user has profile
Profile.objects.get_or_create(user=anon_user)
if created or update:
anon_user.set_unusable_password()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment