﻿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
16711	RelatedFieldListFilter and filter title	dan.klasson@…	nobody	"The class RelatedFieldListFilter in /django-trunk/django/contrib/admin/filters.py has a bug in it.

If I have this model and admin class:

{{{
class SomeModel(models.Model):
    deposit = models.ManyToManyField(PaymentMethod, related_name=""deposit"")
    withdrawal = models.ManyToManyField(PaymentMethod, related_name=""withdrawal"")

class SomeModelAdmin(admin.ModelAdmin):
    list_filter('deposit', 'withdrawal')
}}}

I expect the filter name/title of 'deposit' and 'withdrawal' on the listing page to be ""By Deposit"" and ""By Withdrawal"". And not ""By Payment Method"".

Line 151 should be:
{{{
if not isinstance(field, (models.ManyToManyField,
}}}
Instead of:
{{{
if isinstance(field, (models.ManyToManyField,
}}}"	Bug	closed	contrib.admin	dev	Normal	duplicate		dan.klasson@…	Unreviewed	0	0	0	0	0	0
