﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35318	QuerySet.exclude() docs contain a potentially misleading statement regarding the restrictiveness of examples.	P1car00n	nobody	"[https://docs.djangoproject.com/en/5.0/ref/models/querysets/#exclude In the Django documentation for the exclude() method], there's a statement comparing two examples where one is claimed to be more restrictive than the other. However, upon careful examination, it appears that the statement is inaccurate.

The documentation states:
  ""The second example is more restrictive.""

However, this statement contradicts the actual behavior of the examples provided:

**First Example:**
{{{
Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3), headline=""Hello"")
}}}

This example excludes entries where both conditions (pub_date being later than January 3, 2005, and headline being ""Hello"") are true. It is more restrictive than the second example because it requires both conditions to be false for an entry to be excluded.

**Second Example:**
{{{
Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline=""Hello"")
}}}

This example excludes entries where either condition (pub_date being later than January 3, 2005, or headline being ""Hello"") is true. It is less restrictive than the first example because it allows for excluding entries based on either condition being true.

The issue is very easy to fix, but I wanted somebody with more experience with SQL to have a look first."	Cleanup/optimization	closed	Documentation	5.0	Normal	invalid	QuerySet, Clarification, Accuracy	P1car00n	Unreviewed	0	0	0	0	1	0
