|
@@ -10,7 +10,6 @@
|
|
|
:license: BSD, see LICENSE for more details.
|
|
|
"""
|
|
|
from sqlalchemy import UniqueConstraint
|
|
|
-from sqlalchemy.ext.associationproxy import association_proxy
|
|
|
from sqlalchemy.orm.collections import attribute_mapped_collection
|
|
|
|
|
|
from flaskbb.extensions import db
|
|
@@ -52,9 +51,6 @@ class PluginRegistry(CRUDMixin, db.Model):
|
|
|
cascade='all, delete-orphan',
|
|
|
backref='plugin'
|
|
|
)
|
|
|
- settings = association_proxy(
|
|
|
- 'values', 'value', creator=lambda k, v: PluginStore(key=k, value=v)
|
|
|
- )
|
|
|
|
|
|
def get_settings_form(self):
|
|
|
return generate_settings_form(self.values.values())()
|