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
class Association(Model):
related_to = ForeignKey('Parent',related_name='associations')
class Parent(Model):
text = TextField(null=True)
class Child(Parent):
more_text = TextField(null=True)
reversion.revisions.register(Child, follow=['parent_ptr','associations'])
Both the parent and child instances will be stored in the relation, but due to how django serialisers work for multi-table inheritance the associations field will only be available on the Parent reversion, not the Child reversion. I've made a PR that addresses that will be added soon.
The text was updated successfully, but these errors were encountered:
For example, given the models and register below:
Both the parent and child instances will be stored in the relation, but due to how django serialisers work for multi-table inheritance the
associations
field will only be available on theParent
reversion, not theChild
reversion. I've made a PR that addresses that will be added soon.The text was updated successfully, but these errors were encountered: