* stage: Unreviewed => Accepted
Comment:
We should fix that.
I think the most straightforward solution is to only set `lazy_sub_objs =
True` on the function returned by `SET` if the value is not a callable.
The same problem exists for `SET_DEFAULT` when the default is callable.
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: bcail (added)
Comment:
@O'ktamjon are you still working on this? If not, I can work on it.
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:4>
I opened an [https://github.com/django/django/pull/17812 in-progress PR]
with two unit tests, for SET and SET_DEFAULT.
I pinged Simon on the PR, because I haven't figured out how to fix
SET_DEFAULT yet.
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:5>
* has_patch: 0 => 1
Comment:
I updated the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:7>
* needs_better_patch: 1 => 0
Comment:
I updated the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:8>
* owner: O'ktamjon => bcail
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9c5e382b981608a26f2c55f1259d9e823fee5f15" 9c5e382b]:
{{{#!CommitTicketReference repository=""
revision="9c5e382b981608a26f2c55f1259d9e823fee5f15"
Fixed #35073 -- Avoided unnecessary calling of callables used by
SET/SET_DEFAULT in Collector.collect().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:10>