Skip to content

Commit

Permalink
Disable polymorphism in DruidMetric as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-pham-airbnb committed Mar 25, 2016
1 parent 23b6bca commit 2378fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashed/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,9 @@ class DruidMetric(Model):
datasource_name = Column(
String(250),
ForeignKey('datasources.datasource_name'))
datasource = relationship('DruidDatasource', backref='metrics')
# Setting enable_typechecks=False disables polymorphic inheritance.
datasource = relationship('DruidDatasource', backref='metrics',
enable_typechecks=False)
json = Column(Text)
description = Column(Text)

Expand Down

0 comments on commit 2378fdf

Please sign in to comment.