From 76e37513e22f4d9a01c7f15eee36fe44388e6670 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sun, 6 Nov 2022 11:19:33 -0500 Subject: Refs #33374 -- Adjusted full match condition handling. Adjusting WhereNode.as_sql() to raise an exception when encoutering a full match just like with empty matches ensures that all case are explicitly handled. --- docs/ref/exceptions.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/exceptions.txt b/docs/ref/exceptions.txt index 2b567414e6..b588d0ee81 100644 --- a/docs/ref/exceptions.txt +++ b/docs/ref/exceptions.txt @@ -42,6 +42,17 @@ Django core exception classes are defined in ``django.core.exceptions``. return any results. Most Django projects won't encounter this exception, but it might be useful for implementing custom lookups and expressions. +``FullResultSet`` +----------------- + +.. exception:: FullResultSet + +.. versionadded:: 4.2 + + ``FullResultSet`` may be raised during query generation if a query will + match everything. Most Django projects won't encounter this exception, but + it might be useful for implementing custom lookups and expressions. + ``FieldDoesNotExist`` --------------------- -- cgit v1.3