Skip to content

Unable to compare followed reverse foreign relation fields that are on a non-abstract parent class #58

@LegoStormtroopr

Description

@LegoStormtroopr

For example, given the models and register below:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions