You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact, that docstring implies that there is no expectation that there is a _prefetch_related_lookups attribute.
My particular instance of the problem could be fixed on the application side by adding .all(). However, that would cause early evaluation of the queryset before filtering. That's not an option; SQL queries should run only once all WHERE conditions have been applied.
This is a regression that simply breaks stuff that has been working with the stable API. The change should be reverted.
@browniebroke Okay thanks, so would a sensible course of action be to start by reverting #8043 for a 3.15.1, so we can later consider re-issuing a non-breaking fix without the additional time-pressure?
UpdateModelMixin.update()
accesses the queryset's_prefetch_related_lookups
attribute.RelatedManager
:Notes:
get_queryset()
is not expected to return aQuerySet
. This is explicitly stated inget_queryset()
's docstring._prefetch_related_lookups
attribute..all()
. However, that would cause early evaluation of the queryset before filtering. That's not an option; SQL queries should run only once all WHERE conditions have been applied.This is a regression that simply breaks stuff that has been working with the stable API. The change should be reverted.
(This is similar to #9306, but not the same.)
The text was updated successfully, but these errors were encountered: