flows: fix exporting and importing for models with multiple unique fields
This commit is contained in:
@ -6,13 +6,13 @@ from django.db.backends.base.schema import BaseDatabaseSchemaEditor
|
||||
|
||||
def add_title_for_defaults(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
|
||||
slug_title_map = {
|
||||
"default-authentication-flow": "Default Authentication Flow",
|
||||
"default-authentication-flow": "Welcome to passbook!",
|
||||
"default-invalidation-flow": "Default Invalidation Flow",
|
||||
"default-source-enrollment": "Default Source Enrollment Flow",
|
||||
"default-source-authentication": "Default Source Authentication Flow",
|
||||
"default-source-enrollment": "Welcome to passbook!",
|
||||
"default-source-authentication": "Welcome to passbook!",
|
||||
"default-provider-authorization-implicit-consent": "Default Provider Authorization Flow (implicit consent)",
|
||||
"default-provider-authorization-explicit-consent": "Default Provider Authorization Flow (explicit consent)",
|
||||
"default-password-change": "Default Password Change Flow",
|
||||
"default-password-change": "Change password",
|
||||
}
|
||||
db_alias = schema_editor.connection.alias
|
||||
Flow = apps.get_model("passbook_flows", "Flow")
|
||||
|
||||
16
passbook/flows/migrations/0013_auto_20200905_2142.py
Normal file
16
passbook/flows/migrations/0013_auto_20200905_2142.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated by Django 3.1.1 on 2020-09-05 21:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("passbook_flows", "0012_auto_20200830_1056"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="stage", name="name", field=models.TextField(unique=True),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user