'How can add auto complte filter django?

adding auto complte filter for django models using django filter? django-admin-autocomplete-filter installed, and may i know how to write code ?

my filter

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']


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source