--
Ticket URL: <https://code.djangoproject.com/ticket/27119>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by timgraham):
I think I'm lacking some details to understand this. Is this for plain
formsets and/or model formsets? Are the duplicated calls to
`BaseFormSet.full_clean()` and/or some other `full_clean()`? For example,
I added some debugging in Django's `test_basic_formset` but only saw
`BaseFormSet.full_clean()` called once.
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:1>
Comment (by claudep):
I think this affects all sort of formsets. The problem might rather affect
the `full_clean()` methods of included subforms (notably for the
management form).
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:2>
* stage: Unreviewed => Accepted
Comment:
Making `BaseFormSet.management_form` a `@cached_property` seems to help
(not sure if it fully resolves the issue).
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:3>
* status: new => assigned
* owner: nobody => DavidFozo
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:4>
* owner: DavidFozo => Karol Sztajerwald
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:5>
* has_patch: 0 => 1
Comment:
PR here: https://github.com/django/django/pull/7496
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:6>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:7>
* needs_tests: 1 => 0
Comment:
Tests added in that [https://github.com/django/django/pull/7644 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:8>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d49551bc261666fad753b0f55f1150467190e3f7" d49551bc]:
{{{
#!CommitTicketReference repository=""
revision="d49551bc261666fad753b0f55f1150467190e3f7"
Fixed #27119 -- Cached BaseFormSet.management_form property
Thanks Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27119#comment:10>