from dal import autocomplete from .models import Sighting class SightingsForm(autocomplete.FutureModelForm): class Meta: model = Sighting fields = ('ap', 'point', ) widgets = { 'ap': autocomplete.ModelSelect2(url='ap-autocomplete') }