fix verification of admin user in bootstrap script
This commit is contained in:
parent
47c0a482f6
commit
dc45460675
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue