diff options
Diffstat (limited to 'app/sightings/forms.py')
-rw-r--r-- | app/sightings/forms.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/sightings/forms.py b/app/sightings/forms.py new file mode 100644 index 0000000..9be7dcc --- /dev/null +++ b/app/sightings/forms.py @@ -0,0 +1,14 @@ +from dal import autocomplete + +from .models import Sighting + + +class SightingsForm(autocomplete.FutureModelForm): + class Meta: + model = Sighting + fields = ('ap', 'point', ) + widgets = { + 'ap': autocomplete.TaggitSelect2( + 'ap-autocomplete' + ) + } |