def __init__(self, **kw):
    super(SomeFilter, self).__init__(**kw)
self.filters['provider'].extra['queryset'] = Provider.objects.filter(foo__in
    =self.queryset)
Hide filter items that produce zero results in django-filter