Fix typo in migrations for authenticator_webauthn (#950)

This commit is contained in:
Alex 2021-05-31 18:24:20 -04:00 committed by GitHub
parent ebfa7c8dce
commit ef8b26db13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -18,16 +18,16 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito
db_alias = schema_editor.connection.alias db_alias = schema_editor.connection.alias
flow, _ = Flow.objects.using(db_alias).update_or_create( flow, _ = Flow.objects.using(db_alias).update_or_create(
slug="default-authenticator-webuahtn-setup", slug="default-authenticator-webauthn-setup",
designation=FlowDesignation.STAGE_CONFIGURATION, designation=FlowDesignation.STAGE_CONFIGURATION,
defaults={ defaults={
"name": "default-authenticator-webuahtn-setup", "name": "default-authenticator-webauthn-setup",
"title": "Setup WebAuthn", "title": "Setup WebAuthn",
}, },
) )
stage, _ = AuthenticateWebAuthnStage.objects.using(db_alias).update_or_create( stage, _ = AuthenticateWebAuthnStage.objects.using(db_alias).update_or_create(
name="default-authenticator-webuahtn-setup" name="default-authenticator-webauthn-setup"
) )
FlowStageBinding.objects.using(db_alias).update_or_create( FlowStageBinding.objects.using(db_alias).update_or_create(