summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/querysets.txt15
1 files changed, 4 insertions, 11 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 6edc508661..9f541d5414 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -3707,17 +3707,10 @@ operate on vegetarian pizzas.
``FilteredRelation`` doesn't support:
-* Conditions that span relational fields. For example::
-
- >>> Restaurant.objects.annotate(
- ... pizzas_with_toppings_startswith_n=FilteredRelation(
- ... 'pizzas__toppings',
- ... condition=Q(pizzas__toppings__name__startswith='n'),
- ... ),
- ... )
- Traceback (most recent call last):
- ...
- ValueError: FilteredRelation's condition doesn't support nested relations (got 'pizzas__toppings__name__startswith').
* :meth:`.QuerySet.only` and :meth:`~.QuerySet.prefetch_related`.
* A :class:`~django.contrib.contenttypes.fields.GenericForeignKey`
inherited from a parent model.
+
+.. versionchanged:: 3.2
+
+ Support for nested relations was added.