You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the HistoricXX classes never inherit from PolymorphicModel.
Additional context
I am pretty sure that this would need changes about field naming in either this module or in django polymorphic because django polymorphic needs a polymorphic_ctype column, creating a history on a polymorphic model also generates it and having a polymorphic history on a polymorphic model would require this column twice.
The text was updated successfully, but these errors were encountered:
Hello everyone,
First of all, let me thank you for this awesome package. It was a real pleasure to use it to track changes in my models.
Problem Statement
I have tried using it with a pair of models that use django-polymorphic and couldn't manage to make it work how I wanted.
Here's a minimal reproducible example of my models:
The goal was to store the hierarchy of a company in a tree.
Our requirements were the following:
Describe the solution you'd like
I would have loved to be able to do:
Just like in django polymorphic.
This would avoid doing something like this:
When one could do:
In order to obtain all the history dates of the whole tree.
Describe alternatives you've considered
I have tried to use Polymorphic as base but couldn't manage to make it work:
It seems that the HistoricXX classes never inherit from
PolymorphicModel
.Additional context
I am pretty sure that this would need changes about field naming in either this module or in django polymorphic because django polymorphic needs a
polymorphic_ctype
column, creating a history on a polymorphic model also generates it and having a polymorphic history on a polymorphic model would require this column twice.The text was updated successfully, but these errors were encountered: