summaryrefslogtreecommitdiff
path: root/docs/faq
diff options
context:
space:
mode:
authorDominik <ueqnn@student.kit.edu>2022-04-19 11:34:14 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-19 18:56:04 +0200
commit7d26d5f8f17637a768f9d46e96547ae12e2418ae (patch)
tree14319b528a927d0e34f834f420d70b31e361014b /docs/faq
parentbf7c51a5f4da5f00b46923545ea6657ba9556bf6 (diff)
Fixed #33644 -- Corrected FAQ about displaying ManyToManyField in list_filter.
Diffstat (limited to 'docs/faq')
-rw-r--r--docs/faq/admin.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/faq/admin.txt b/docs/faq/admin.txt
index ea9690bbe6..7c6f7a12c7 100644
--- a/docs/faq/admin.txt
+++ b/docs/faq/admin.txt
@@ -49,10 +49,10 @@ My "list_filter" contains a ManyToManyField, but the filter doesn't display.
============================================================================
Django won't bother displaying the filter for a ``ManyToManyField`` if there
-are fewer than two related objects.
+are no related objects.
For example, if your :attr:`~django.contrib.admin.ModelAdmin.list_filter`
-includes :doc:`sites </ref/contrib/sites>`, and there's only one site in your
+includes :doc:`sites </ref/contrib/sites>`, and there are no sites in your
database, it won't display a "Site" filter. In that case, filtering by site
would be meaningless.