From 42dbb26a13190cb1fcd1723367e8811eff6d8d25 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Thu, 19 Sep 2013 08:02:30 -0700 Subject: not all JSONEncoded fields should be mutable dicts --- mediagoblin/db/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mediagoblin/db/models.py') 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'), -- cgit v1.2.3