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
1 changed files with 6 additions and 0 deletions

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(