diff --git a/api/events/event_handlers/create_site_record_when_app_created.py b/api/events/event_handlers/create_site_record_when_app_created.py index 95b155b3f5560f..ab07c5d366c342 100644 --- a/api/events/event_handlers/create_site_record_when_app_created.py +++ b/api/events/event_handlers/create_site_record_when_app_created.py @@ -11,9 +11,9 @@ def handle(sender, **kwargs): site = Site( app_id=app.id, title=app.name, - icon_type = app.icon_type, - icon = app.icon, - icon_background = app.icon_background, + icon_type=app.icon_type, + icon=app.icon, + icon_background=app.icon_background, default_language=account.interface_language, customize_token_strategy="not_allow", code=Site.generate_code(16), diff --git a/api/fields/app_fields.py b/api/fields/app_fields.py index 3aa439520c74eb..faa0ea4b1f01e0 100644 --- a/api/fields/app_fields.py +++ b/api/fields/app_fields.py @@ -79,7 +79,7 @@ "icon_url": AppIconUrlField, "model_config": fields.Nested(model_config_partial_fields, attribute="app_model_config", allow_null=True), "created_at": TimestampField, - "tags": fields.List(fields.Nested(tag_fields)) + "tags": fields.List(fields.Nested(tag_fields)), }