Skip to content

Multiple inheritance bug on deletion (Django 1.10) #274

@icpetcu

Description

@icpetcu

I have the following structure:

A (PolymorphicModel)
/ |
| D -- E
B -- C

When I try to delete all A instances with A.objects.all().delete(), I get the following error:

AttributeError: 'E' object has no attribute 'b_ptr'

I've tested the same scenario without polymorphic and it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions