1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

[3.1.x] Fixes #31877 -- Used lazy() for TemplateView kwarg deprecation warning.

SimpleLazyObjects cause a crash when filtering.

Thanks Tim L. White for the report.
Regression in 4ed534758c.

Backport of 20799cc0a6 from master
This commit is contained in:
Adam Johnson
2020-08-12 12:19:46 +01:00
committed by Mariusz Felisiak
parent f139372491
commit 9ae40d8137
3 changed files with 26 additions and 5 deletions

View File

@@ -25,3 +25,7 @@ Bugfixes
:meth:`~django.db.models.query.QuerySet.select_for_update()`. When using
related fields pointing to a proxy model in the ``of`` argument, the
corresponding model was not locked (:ticket:`31866`).
* Fixed a regression in Django 3.1 that caused a crash when passing deprecated
keyword arguments to a queryset in ``TemplateView.get_context_data()``
(:ticket:`31877`).