Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multitable inherited models. #30

Open
AndySun25 opened this issue May 4, 2015 · 1 comment
Open

Support for multitable inherited models. #30

AndySun25 opened this issue May 4, 2015 · 1 comment

Comments

@AndySun25
Copy link

Currently permanent does not work with inherited models.

If the parent model is permanent e.g.

class A(PermanentModel):
    ...

class B(A):
    ....

class C(A):
    ....

listing and such will fail due to the child models not having the removed field.

Having the child models permanent will instead cause issues when deleting as only the child models are being soft deleted, the parent object will still be hard deleted leading to a constraint violation. Attempting to inherit permanent in both parent and child models will also result in a clash of the removed field.

@meteozond
Copy link
Contributor

Looks like you are talking about multitable inheritance.
I've missed this case.

meteozond added a commit that referenced this issue May 28, 2015
@meteozond meteozond changed the title Support for inherited models. Support for multitable inherited models. Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants