From dc454606756403050f4a2ce3e60818224b37876f Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Wed, 8 Mar 2017 23:51:43 +0100 Subject: [PATCH] fix verification of admin user in bootstrap script --- src/utils/management/commands/bootstrap-devsite.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/management/commands/bootstrap-devsite.py b/src/utils/management/commands/bootstrap-devsite.py index 43392f54..2261a677 100644 --- a/src/utils/management/commands/bootstrap-devsite.py +++ b/src/utils/management/commands/bootstrap-devsite.py @@ -124,6 +124,12 @@ class Command(BaseCommand): email='admin@example.com', password='admin', ) + email = EmailAddress.objects.create( + user=admin, + email='admin@example.com', + verified=True + ) + email.set_as_primary() self.output("Creating event types...") workshop = EventType.objects.create(