'Validates a model with a generic relation to a model with
a foreign key can specify the generic+fk relationship
path as a list_filter. See trac #21428.'

def test_generic_relation_fk_list_filter(self):

    class GenericFKAdmin(admin.ModelAdmin, ):
        list_filter = (u'tags__content_type',)
    validator = ModelAdminValidator()
    try:
        validator.validate_list_filter(GenericFKAdmin, Plot)
    except ImproperlyConfigured:
        self.fail(u"Couldn't    validate    a    GenericRelation    ->    FK    path    in    ModelAdmin.list_filter")
