Can a child model inherit from multiple parent PolymorphicModel classes?
jaradc opened this issue · comments
jaradc commented
Any foreseeable issues with this model design?
class Content(PolymorphicModel):
title = ...
description = ...
class Product(PolymorphicModel):
price = ...
class Report(Content, Product): # <-- this OK?
...
class Post(Content):
pass
class Listing(Product):
pass
Can a downstream model inherit from multiple parent PolymorphicModel classes? I'm not seeing conflicts yet, but I'm an amateur.
jaradc commented
Stupid question. I AM seeing issues. The field 'id' from the parent model 'content' clashes with the 'id' field from parent model 'product'. So it won't work.