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

Custom inheritance order? #13

Closed
mnestor opened this issue Jan 8, 2015 · 1 comment
Closed

Custom inheritance order? #13

mnestor opened this issue Jan 8, 2015 · 1 comment

Comments

@mnestor
Copy link

mnestor commented Jan 8, 2015

Not sure if this is an issue or I'm just not seeing it.

I've got 3 apps that inhert from each other in the database

BaseType #template basetype/details.html doesn't extend anything
Type1(BaseType) #template basetype/details.html overextends basetype/details.html
SubType1(Type1) #template basetype/details.html overextends basetype/details.html

Fails DB creation, works for overextends
INSTALLED_APPS (
SubType1,
Type1,
BaseType, )

Works for DB creation, fails for overextends. Will only see the template from BaseType
INSTALLED_APPS (
BaseType,
SubType1,
Type1, )

Perhaps this is an odd case since the URL I load is for BaseType. BaseType is constructed in such a way as to use model-utils.InhertianceManager and load the correct subclass model for the display.

@stephenmcd
Copy link
Owner

The app order will certainly affect how template inheritance works, that's intentional.

I don't think what you've loosely described is an issue with this library.

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants