From f1b3ab9c2158f5a7da113aef4158499ce2d42ee2 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Wed, 18 Dec 2013 16:59:08 +0100 Subject: Fixed #11629 -- Deprecated callable arguments to queryset methods. Callable arguments were an untested and undocumented feature. --- docs/internals/deprecation.txt | 2 ++ docs/releases/1.7.txt | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index c3b0cda95b..ef2561a05d 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -226,6 +226,8 @@ these changes. loading APIs instead. Several undocumented methods of the ``AppCache`` class will also be removed. +* Passing callable arguments to querysets will no longer be possible. + 2.0 --- diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 25b2714d42..4de02c0b6d 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -869,3 +869,14 @@ Geo Sitemaps Google has retired support for the Geo Sitemaps format. Hence Django support for Geo Sitemaps is deprecated and will be removed in Django 1.8. + +Passing callable arguments to queryset methods +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Callable arguments for querysets were an undocumented feature that was +unreliable. It's been deprecated and will be removed in Django 1.9. + +Callable arguments were evaluated when a queryset was constructed rather than +when it was evaluated, thus this feature didn't offer any benefit compared to +evaluating arguments before passing them to queryset and created confusion that +the arguments may have been evaluated at query time. -- cgit v1.3