Skip to content
Browse files

Added ManyToManyField filter doesn't display question to FAQ

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent aa865f3 commit 88a65ddd7fd88f5f48e998ad92e3949dd5ba15ec @adrianholovaty adrianholovaty committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/faq.txt
10 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?

0 comments on commit 88a65dd

Please sign in to comment.
Something went wrong with that request. Please try again.