2016-07-15 00:02:56 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from __future__ import division
|
|
|
|
from __future__ import print_function
|
2016-05-26 22:44:10 +02:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
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...'})
|