Commit ccc3dd4c authored by Michal Čihař's avatar Michal Čihař

Ensure anonymous user has email set

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2ad9d3b3
...@@ -18,6 +18,7 @@ def add_anonymous_profile(apps, schema_editor): ...@@ -18,6 +18,7 @@ def add_anonymous_profile(apps, schema_editor):
defaults={ defaults={
'is_active': False, 'is_active': False,
'password': make_password(None), 'password': make_password(None),
'email': 'noreply@weblate.org',
} }
)[0] )[0]
guest_group = Group.objects.get_or_create(name='Guests')[0] guest_group = Group.objects.get_or_create(name='Guests')[0]
......
...@@ -963,6 +963,7 @@ def create_groups(update): ...@@ -963,6 +963,7 @@ def create_groups(update):
except User.DoesNotExist: except User.DoesNotExist:
anon_user = User.objects.create( anon_user = User.objects.create(
username=ANONYMOUS_USER_NAME, username=ANONYMOUS_USER_NAME,
email='noreply@weblate.org',
is_active=False, is_active=False,
) )
......
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