2016-05-21 23:57:36 +02:00
|
|
|
import autocomplete_light
|
|
|
|
|
|
|
|
from bda.models import Participant, Spectacle
|
|
|
|
|
2016-07-09 22:31:56 +02:00
|
|
|
autocomplete_light.register(
|
|
|
|
Participant, search_fields=('user__username', 'user__first_name',
|
|
|
|
'user__last_name'),
|
2016-05-21 23:57:36 +02:00
|
|
|
autocomplete_js_attributes={'placeholder': 'participant...'})
|
|
|
|
|
2016-07-09 22:31:56 +02:00
|
|
|
autocomplete_light.register(
|
|
|
|
Spectacle, search_fields=('title', ),
|
2016-05-21 23:57:36 +02:00
|
|
|
autocomplete_js_attributes={'placeholder': 'spectacle...'})
|