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