Opened 4 months ago

Last modified 4 months ago

#29336 assigned Cleanup/optimization

No docs for circular inheritance

Reported by: Adrian Turjak Owned by: Adrian Turjak
Component: Documentation Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
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 (2)

comment:1 Changed 4 months ago by Adrian Turjak

Owner: changed from nobody to Adrian Turjak
Status: newassigned

comment:2 Changed 4 months ago by Carlton Gibson

Has patch: set
Patch needs improvement: set
Triage Stage: UnreviewedAccepted

This would make a good addition to the Overriding Templates How-To.

Note: See TracTickets for help on using tickets.
Back to Top