fix verification of admin user in bootstrap script

This commit is contained in:
Stephan Telling 2017-03-08 23:51:43 +01:00
parent 47c0a482f6
commit dc45460675
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B

View file

@ -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(