This is not an error.

The identified example does _not_ say that it will "return" those entries. It states it will _exclude_ entries matching either of those two conditions.

Likewise, the SQL statement referenced is a negation ("and not") of the condition.

This portion of the documentation is accurate and correct with what it's saying.

Ken


On 10/10/2021 8:15 AM, Pranav Mittal wrote:
Hello everyone.

https://docs.djangoproject.com/en/3.2/ref/models/querysets/#django.db.models.query.QuerySet.exclude

The second example mentions that the query will return entries /whose /pub_date/ is later than 2005-1-3 /*_O_**_R _*/whose headline is “Hello”./
/
/
/But the equivalent SQL statement mentions /_AND_.


Untitled.png
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9028b784-9bd8-4207-91e0-d46e9907fb44n%40googlegroups.com <https://groups.google.com/d/msgid/django-developers/9028b784-9bd8-4207-91e0-d46e9907fb44n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/2d528a89-2612-554e-d772-fce9ebfaf1ed%40comcast.net.

Reply via email to