소스 검색

fix: initialize site with customized icon and icon_background (#5227)

kurokobo 1 년 전
부모
커밋
0391282b5e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      api/events/event_handlers/create_site_record_when_app_created.py

+ 2 - 0
api/events/event_handlers/create_site_record_when_app_created.py

@@ -11,6 +11,8 @@ def handle(sender, **kwargs):
     site = Site(
         app_id=app.id,
         title=app.name,
+        icon = app.icon,
+        icon_background = app.icon_background,
         default_language=account.interface_language,
         customize_token_strategy='not_allow',
         code=Site.generate_code(16)