From b1fd801ceb0758eb23ed740951325871c339292a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 3 Mar 2022 11:50:46 +0000 Subject: [PATCH] tenants: fix syntax error in expression for locale --- .../migrations/0002_tenant_flow_user_settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/authentik/tenants/migrations/0002_tenant_flow_user_settings.py b/authentik/tenants/migrations/0002_tenant_flow_user_settings.py index 8d628b925..0fda85dd8 100644 --- a/authentik/tenants/migrations/0002_tenant_flow_user_settings.py +++ b/authentik/tenants/migrations/0002_tenant_flow_user_settings.py @@ -67,7 +67,7 @@ def create_default_user_settings_flow(apps: Apps, schema_editor: BaseDatabaseSch "placeholder": """try: return user.username except: - return """, + return ''""", "placeholder_expression": True, }, ) @@ -80,7 +80,7 @@ except: "placeholder": """try: return user.name except: - return """, + return ''""", "placeholder_expression": True, }, ) @@ -93,7 +93,7 @@ except: "placeholder": """try: return user.email except: - return """, + return ''""", "placeholder_expression": True, }, ) @@ -104,9 +104,9 @@ except: "label": "Locale", "type": FieldTypes.AK_LOCALE, "placeholder": """try: - return return user.attributes.get("settings", {}).get("locale", "") + return user.attributes.get("settings", {}).get("locale", "") except: - return """, + return ''""", "placeholder_expression": True, "required": True, },