Skip to content

Commit 2378fdf

Browse files
Disable polymorphism in DruidMetric as well
1 parent 23b6bca commit 2378fdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dashed/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,9 @@ class DruidMetric(Model):
10961096
datasource_name = Column(
10971097
String(250),
10981098
ForeignKey('datasources.datasource_name'))
1099-
datasource = relationship('DruidDatasource', backref='metrics')
1099+
# Setting enable_typechecks=False disables polymorphic inheritance.
1100+
datasource = relationship('DruidDatasource', backref='metrics',
1101+
enable_typechecks=False)
11001102
json = Column(Text)
11011103
description = Column(Text)
11021104

0 commit comments

Comments
 (0)