django-polymorphic Questions
4
Solved
If I have a polymorphic model:
class Father(polymorphic.model.PolymorphicModel)
and an inheritor class with no extra fields:
class Child(Father)
When I have an instance of Father, how can I c...
Variometer asked 13/9, 2016 at 14:47
2
Solved
So far every other answer on SO answers in the exact same way: construct your metaclasses and then inherit the 'joined' version of those metaclasses, i.e.
class M_A(type): pass
class M_B(type): pa...
Galloping asked 16/11, 2017 at 0:54
1
Solved
I have models structure like below:
class MyObject(PolymorphicModel):
group = models.ForeignKey(Group)
class Group(PolymorphicModel):
pass
class SpecialGroup(Group):
pass
Now, I would like ...
Issacissachar asked 26/3, 2014 at 23:58
1
© 2022 - 2024 — McMap. All rights reserved.