Re: [Django] #32031: Added model class to app_list context (was: Added model instance to app_list context)

12 views
Skip to first unread message

Django

unread,
May 12, 2021, 3:30:48 PM5/12/21
to django-...@googlegroups.com
#32031: Added model class to app_list context
-------------------------------------+-------------------------------------
Reporter: Raffaele Salmaso | Owner: Raffaele
| Salmaso
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Raffaele Salmaso:

Old description:

> I need to manipulate the `app_list` in my custom admin view, and the
> easiest way to get the result is to have access to the model instance
> (currently the dictionary is a serialized model).
>
> In addition I would make the `_build_app_dict` method public, as it is
> used by the two views `index` and `app_index`.

New description:

I need to manipulate the `app_list` in my custom admin view, and the
easiest way to get the result is to have access to the model class
(currently the dictionary is a serialized model).

~~In addition I would make the `_build_app_dict` method public, as it is
used by the two views `index` and `app_index`.~~

--

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

Reply all
Reply to author
Forward
0 new messages