Start refactoring for images management

This commit is contained in:
grossmj committed 2021-06-06 16:52:47 +09:30
1 parent f64b5cd9b6
commit 515bd50261
16 files changed
+594 -30

No files matched your search

+2
View File
@@ -35,6 +35,8 @@ class Template(BaseTable):
usage = Column(String)
template_type = Column(String)
image_id = Column(Integer, ForeignKey('images.id', ondelete="CASCADE"))
__mapper_args__ = {
"polymorphic_identity": "templates",
"polymorphic_on": template_type,