* owner: Simon Meers => abdulrahman
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/14810#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> This has been bugging me for years, but I've not spotted a matching
> ticket as yet. The `admin/edit-inline/(stacked|tabular).html` templates
> do no contain a single `{% block %}`, and are therefore quite useless
> when it comes to template inheritance. It is a common requirement to
> tweak a small fragment of these templates, but this cannot be done in a
> DRY manner at present.
>
> I propose tidying up these templates and breaking them down into blocks
> to solve this. More than happy to write the code, just thought I'd raise
> it here first to make sure I hadn't missed anything.
New description:
This has been bugging me for years, but I've not spotted a matching ticket
as yet. The `admin/edit-inline/(stacked|tabular).html` templates do not
contain a single `{% block %}`, and are therefore quite useless when it
comes to template inheritance. It is a common requirement to tweak a small
fragment of these templates, but this cannot be done in a DRY manner at
present.
I propose tidying up these templates and breaking them down into blocks to
solve this. More than happy to write the code, just thought I'd raise it
here first to make sure I hadn't missed anything.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/14810#comment:7>
* has_patch: 0 => 1
Comment:
The pull request:
https://github.com/django/django/pull/17030
--
Ticket URL: <https://code.djangoproject.com/ticket/14810#comment:8>
* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/14810#comment:9>
* status: assigned => closed
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0
* has_patch: 1 => 0
* resolution: => wontfix
* stage: Accepted => Unreviewed
Comment:
Do to the lack of any replies [https://forum.djangoproject.com/t/adding-
blocks-to-the-stacked-tabular-inline-templates/21969 on the forum], only a
few replies in the ticket, and strong doubts as to whether this is really
useful, I'll close the ticket as "wontfix".
`title` can already be customized with
`verbose_name`/`verbose_name_plural` and using `field-elements`/`table-
body`/`table-headers` will force users to rewrite almost the entire
template, so they are not very useful either.
--
Ticket URL: <https://code.djangoproject.com/ticket/14810#comment:10>