#29336 closed Cleanup/optimization (fixed)
No docs for circular template inheritance
Reported by: | Adrian Turjak | Owned by: | David Smith |
---|---|---|---|
Component: | Documentation | Version: | 2.0 |
Severity: | Normal | Keywords: | |
Cc: | frnhr | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Proper support for circular (recursive) inheritance has been possible since https://code.djangoproject.com/ticket/22232 was fixed. But we don't have any docs for this, or at least none that appear to be easy to find.
This is a very useful feature. It allows a lot of power and flexibility without the need to create many template overrides.
Before Django properly supported this, most of us used: https://github.com/stephenmcd/django-overextends
The docs from overextends with the basic example as there on that project are what Django needs. A clear explanation and example of what circular inheritance is, how it works, and how to use it.
Change History (11)
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
This would make a good addition to the Overriding Templates How-To.
comment:4 by , 5 years ago
I don't think that there is a need to reassign this ticket, discussion is in progress.
Replying to Tapasweni Pathak:
Hello folks: Can I take the ticket?
comment:5 by , 5 years ago
Replying to Tapasweni Pathak:
Hello folks: Can I take the ticket?
The current pull request is here:
https://github.com/django/django/pull/9884
If you have opinions on this feature, or how it is documented, that is the place to voice it :)
comment:6 by , 5 years ago
Cc: | added |
---|---|
Summary: | No docs for circular inheritance → No docs for circular template inheritance |
comment:7 by , 4 years ago
Has patch: | unset |
---|---|
Owner: | changed from | to
Patch needs improvement: | unset |
comment:8 by , 4 years ago
Has patch: | set |
---|
comment:9 by , 4 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
PR