#14810: Admin inline templates need blocks
-------------------------------------+-------------------------------------
     Reporter:  Simon Meers          |                    Owner:
                                     |  abdulrahman
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.admin        |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  template, block,     |             Triage Stage:  Accepted
  inheritance                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by abdulrahman:

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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018907a4400d-386f1a8d-9c8d-4e25-a70f-f5a947a8eb12-000000%40eu-central-1.amazonses.com.

Reply via email to