def formfield_for_foreignkey(self, db_field, request, **kwargs):
    if db_field.name == 'title':
        kwargs['queryset'] = Foo.objects.filter(title__isnull=False)
return super(MyModelAdmin, self).formfield_for_foreignkey(db_field, request,
    **kwargs)
filtering dropdown values in django admin