Re: [Django] #15059: Additional Documentation for the objects in the admin templates

13 views
Skip to first unread message

Django

unread,
Nov 5, 2016, 11:52:08 AM11/5/16
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Reinout van Rees):

* cc: reinout@… (added)


Comment:

I've looked at the 1.10 docs: the issue is still valid. There is some
documentation on where to place which templates, but no documentation on
the context that is available to the templates.

Would a simple pointer at the code suffice?

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 23, 2019, 7:45:16 AM11/23/19
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Caio Ariede):

* cc: Caio Ariede (added)


Comment:

> Would a simple pointer at the code suffice?

I really think that this deserves better documentation, specially because
it's already been used by some pretty popular projects like django-
grappelli, django-jet at al.

I'd say having these documented will help us formalize that the context
sent to admin templates are stable and any changes should be stated in
release notes and docs.

Perhaps we could add the context for each template list in
[https://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-
may-be-overridden-per-app-or-model Templates which may be overridden per
app or model]?

I'm not exactly sure about the formatting that could be used, but this is
what I have in mind for now:

* **change_list.html** with the following context:
* **module_name**
* **selection_note** - text containing count of selected records (eg. `0
of %(cnt)s selected`)
* **selection_note_all** - same as **selection_note** but with all
records
* **title** - title of the page
* ...

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:6>

Django

unread,
Sep 24, 2022, 7:20:16 AM9/24/22
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by hassanmian):

Hi all,

(Please be aware that this is my first contribution, so any feedback is
highly appreciated)

I've added some context variables for actions.html. Basically, gone
through the variables that are being used in django's implementation of
actions.html and tried to document them. I'm not sure if the format is as
expected though.

If this is the way we want the document to be, I'd be happy to add the
documentation for the rest of the admin templates as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:7>

Django

unread,
Apr 2, 2023, 11:59:39 PM4/2/23
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Akshat verma):

* cc: Akshat verma (added)


Comment:

from django.contrib import admin
from myapp.models import Author

class AuthorAdmin(admin.ModelAdmin):
pass
admin.site.register(Author, AuthorAdmin)

# Now we need to change UI/UX from NULL to False.

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:8>

Django

unread,
Apr 3, 2023, 12:03:12 AM4/3/23
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Akshat
| verma
Type: Bug | Status: assigned

Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Akshat verma):

* owner: nobody => Akshat verma
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:9>

Django

unread,
Mar 11, 2024, 8:51:32 AM3/11/24
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Ryan
| Cheley
Type: Bug | Status: assigned
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ryan Cheley):

* owner: nobody => Ryan Cheley
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:8>

Django

unread,
Mar 13, 2024, 9:34:14 AM3/13/24
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Ryan
| Cheley
Type: Bug | Status: assigned
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ryan Cheley):

* has_patch: 0 => 1

Comment:

It looks like work done by Hassan may not have been seen because the `Has
Patch` flag wasn’t set. I’m setting it now so that the maintainers can
review it and provide feedback
--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:9>

Django

unread,
Mar 14, 2024, 4:15:44 AM3/14/24
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Ryan
Type: | Cheley
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1
* type: Bug => Cleanup/optimization

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:10>

Django

unread,
Mar 14, 2024, 4:16:27 AM3/14/24
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Hassan
Type: | Mian
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* owner: Ryan Cheley => Hassan Mian

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:11>

Django

unread,
Mar 15, 2024, 8:15:15 AM3/15/24
to django-...@googlegroups.com
#15059: Additional Documentation for the objects in the admin templates
-------------------------------------+-------------------------------------
Reporter: mlakewood | Owner: Hassan
Type: | Mian
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.2
Severity: Normal | Resolution:
Keywords: admin templates | Triage Stage: Accepted
override |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ryan Cheley):

* cc: Ryan Cheley (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/15059#comment:12>
Reply all
Reply to author
Forward
0 new messages