Skip to content

PositionField on inherited class? #26

Open
@pcompassion

Description

@pcompassion

I added positionField to one of the subclasses (multi-table inheritance)

I was unable to create a subclass instance because of the following lines (fields.py: 65)

    if not add and self.collection is not None:
        previous_instance = type(model_instance)._default_manager.get(pk=model_instance.pk)

It trys to get the instance which was not yet saved.

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