hjlarry 5 лет назад
Родитель
Сommit
2e9a56985a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      flaskbb/management/models.py
  2. 1 1
      flaskbb/management/views.py

+ 1 - 1
flaskbb/management/models.py

@@ -68,7 +68,7 @@ class Setting(db.Model, CRUDMixin):
         return cls.query.all()
 
     @classmethod
-    def update(cls, settings, app=None):
+    def update(cls, settings):
         """Updates the cache and stores the changes in the
         database.
 

+ 1 - 1
flaskbb/management/views.py

@@ -122,7 +122,7 @@ class ManagementSettings(MethodView):
             if plugin_obj is not None:
                 plugin_obj.update_settings(new_settings)
             else:
-                Setting.update(settings=new_settings, app=current_app)
+                Setting.update(settings=new_settings)
 
             flash(_("Settings saved."), "success")