From 88a65ddd7fd88f5f48e998ad92e3949dd5ba15ec Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 20 Sep 2005 03:24:01 +0000 Subject: [PATCH] Added ManyToManyField filter doesn't display question to FAQ git-svn-id: http://code.djangoproject.com/svn/django/trunk@653 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/faq.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/faq.txt b/docs/faq.txt index 26ec3141ce..712f7b26a8 100644 --- a/docs/faq.txt +++ b/docs/faq.txt @@ -364,6 +364,16 @@ If you're sure your username and password are correct, make sure your user account has ``is_active`` and ``is_staff`` set to True. The admin site only allows access to users with those two fields both set to True. +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. + +For example, if your ``list_filter`` includes ``sites``, and there's only one +site in your database, it won't display a "Site" filter. In that case, +filtering by site would be meaningless. + How can I customize the functionality of the admin interface? -------------------------------------------------------------