#11974: Submit_row in admin doesn't follow the pattern of using
admin/app_label/model/submit_line.html
-------------------------------------+-------------------------------------
Reporter: vbmendes | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version:
Severity: Normal | Resolution:
Keywords: django admin | Triage Stage: Accepted
templates |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Raffaele Salmaso):
* cc: raffaele.salmaso+djangoproject@… (added)
* needs_tests: 1 => 0
Comment:
Added a PR => https://github.com/django/django/pull/7782
Hi, I've usually customize the submit row of many models in my admin.
At first I've used a similar strategy from the former patch (using
render_to_string), but while working with my setup (only one admin.site),
half of admin_views tests were broken. So this is why I used the
InclusionNode for SubmitRowNode parent class.
Additionally I've added a { block submit-row %}{% endblock %} in default
submit_line.html.
--
Ticket URL: <https://code.djangoproject.com/ticket/11974#comment:11>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.8007a17843cb420b7ee6524724d03680%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.