summaryrefslogtreecommitdiff
path: root/app/sightings/forms.py
blob: 77d61f98f1a1c9a921762626fc98a2369e96cba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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')
        }