summaryrefslogtreecommitdiff
path: root/app/sightings/autocomplete_light_registry.py
blob: 9c113d0040f6ca4f7fc46c2f3676c5087647288b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import autocomplete_light.shortcuts as al
from .models import AP

al.register(AP,
    search_fields=['common_name',],
    attrs={
        'placeholder': 'Animal/Plant...',
        'data-autocomplete-minimum-characters': 2,
    },
    widget_attrs={
        'data-widget-maximum-values': 4,
        'class': 'modern-style',
    },
)