summaryrefslogtreecommitdiff
path: root/app/sightings/forms.py
blob: ffb4a400b85418dda561c1043b5c41044c308ca7 (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 = ('ap', 'point', 'pub_date')
        widgets = {
            'ap': autocomplete.ModelSelect2(url='ap-autocomplete')
        }