[Django] #29436: admin change_form.html in prepopulated_fields_js template tag always call secont time every empty_form in inline_admin_formset

8 views
Skip to first unread message

Django

unread,
May 22, 2018, 2:01:03 PM5/22/18
to django-...@googlegroups.com
#29436: admin change_form.html in prepopulated_fields_js template tag always call
secont time every empty_form in inline_admin_formset
------------------------------------------------+------------------------
Reporter: danilovmy | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
admin change_form.html in prepopulated_fields_js template tag always call
every empty_form in inline_admin_formset,
thats take too much time, while every empty_form make __init__ the second
time.
The first time empty_form make __init__ for formset.render in template.

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

Django

unread,
May 22, 2018, 2:15:09 PM5/22/18
to django-...@googlegroups.com
#29436: admin change_form.html in prepopulated_fields_js template tag always call
second time every empty_form in inline_admin_formset
-------------------------------------+-------------------------------------
Reporter: danilovmy | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/29436#comment:1>

Django

unread,
May 27, 2018, 6:49:47 PM5/27/18
to django-...@googlegroups.com
#29436: admin change_form.html in prepopulated_fields_js template tag always call
second time every empty_form in inline_admin_formset
-------------------------------------+-------------------------------------
Reporter: danilovmy | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => needsinfo


Old description:

> admin change_form.html in prepopulated_fields_js template tag always call
> every empty_form in inline_admin_formset,
> thats take too much time, while every empty_form make __init__ the second
> time.
> The first time empty_form make __init__ for formset.render in template.

New description:

admin change_form.html in prepopulated_fields_js template tag always call
every empty_form in inline_admin_formset,
thats take too much time, while every empty_form make `__init__` the
second time.
The first time empty_form make `__init__` for `formset.render` in
template.

--

Comment:

It's difficult for me to understand your report. Can you propose a patch?
That would help clarify, I think.

--
Ticket URL: <https://code.djangoproject.com/ticket/29436#comment:2>

Reply all
Reply to author
Forward
0 new messages