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', }, )