From f4f84297efeacb3da96e94e84720e8f529b4b3a0 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Tue, 27 Aug 2013 11:53:42 -0700 Subject: make all JSONEncoded columns mutable --- mediagoblin/db/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mediagoblin/db/models.py') diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 10558c5f..a1328370 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -48,6 +48,8 @@ from migrate import changeset _log = logging.getLogger(__name__) +MutationDict.associate_with(JSONEncoded) + class User(Base, UserMixin): """ @@ -393,7 +395,7 @@ class MediaFile(Base): nullable=False) name_id = Column(SmallInteger, ForeignKey(FileKeynames.id), nullable=False) file_path = Column(PathTupleWithSlashes) - file_metadata = Column(MutationDict.as_mutable(JSONEncoded)) + file_metadata = Column(JSONEncoded) __table_args__ = ( PrimaryKeyConstraint('media_entry', 'name_id'), -- cgit v1.2.3