class PlayerFilter(django_filters.FilterSet):
name = django_filters.ModelChoiceFilter(label='Name' 
,queryset=Player.objects.all())
team__name = 
django_filters.ModelChoiceFilter(label='Team',queryset=Team.objects.all() )
team__game__name = 
django_filters.ModelChoiceFilter(label='Game',queryset=Game.objects.all() )
team__company__name = 
django_filters.ModelChoiceFilter(label='Company',queryset=Company.objects.all())
class Meta:
model = Player
fields =['name','team__name','team__game__name','team__company__name']
this is my filter , how can i add auto complte filtter ?
and how can i customize style of filtter filds?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/931d5a46-6d95-4bd7-aa20-c31ae6a69589n%40googlegroups.com.

Reply via email to