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