feat: rename title in site both rename name in app (#857)
This commit is contained in:
parent
bf45f08e78
commit
e8c14bb732
3 changed files with 8 additions and 35 deletions
|
|
@ -80,6 +80,13 @@ class AppSite(Resource):
|
|||
if value is not None:
|
||||
setattr(site, attr_name, value)
|
||||
|
||||
if attr_name == 'title':
|
||||
app_model.name = value
|
||||
elif attr_name == 'icon':
|
||||
app_model.icon = value
|
||||
elif attr_name == 'icon_background':
|
||||
app_model.icon_background = value
|
||||
|
||||
db.session.commit()
|
||||
|
||||
return site
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue