media_entry = inspect_table(metadata, 'core__media_entries')
- col = Column('media_metadata', MutationDict.as_mutable(JSONEncoded))
+ col = Column('media_metadata', MutationDict.as_mutable(JSONEncoded),
+ default=MutationDict())
col.create(media_entry)
db.commit()
cascade="all, delete-orphan"
)
collections = association_proxy("collections_helper", "in_collection")
- media_metadata = Column(MutationDict.as_mutable(JSONEncoded))
+ media_metadata = Column(MutationDict.as_mutable(JSONEncoded),
+ default=MutationDict())
## TODO
# fail_error