aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index a1328370..5e8b6641 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -48,7 +48,6 @@ from migrate import changeset
_log = logging.getLogger(__name__)
-MutationDict.associate_with(JSONEncoded)
class User(Base, UserMixin):
@@ -395,7 +394,7 @@ class MediaFile(Base):
nullable=False)
name_id = Column(SmallInteger, ForeignKey(FileKeynames.id), nullable=False)
file_path = Column(PathTupleWithSlashes)
- file_metadata = Column(JSONEncoded)
+ file_metadata = Column(MutationDict.as_mutable(JSONEncoded))
__table_args__ = (
PrimaryKeyConstraint('media_entry', 'name_id'),