diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-19 08:02:30 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-19 08:12:11 -0700 |
commit | 42dbb26a13190cb1fcd1723367e8811eff6d8d25 (patch) | |
tree | 4a3c2502c14ab75dc734dcd08c462a1c625bfebb /mediagoblin/db/models.py | |
parent | 4c617543c54d8aa249033f99982e786e4346264d (diff) | |
download | mediagoblin-42dbb26a13190cb1fcd1723367e8811eff6d8d25.tar.lz mediagoblin-42dbb26a13190cb1fcd1723367e8811eff6d8d25.tar.xz mediagoblin-42dbb26a13190cb1fcd1723367e8811eff6d8d25.zip |
not all JSONEncoded fields should be mutable dicts
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 3 |
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'), |