mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 10:43:22 +00:00
26 lines
632 B
Python
26 lines
632 B
Python
|
from django.forms import Select, SelectMultiple
|
||
|
|
||
|
from club.models import Club
|
||
|
from club.schemas import ClubSchema
|
||
|
from core.views.widgets.select import AutoCompleteSelectMixin
|
||
|
|
||
|
|
||
|
class AutoCompleteSelectClub(AutoCompleteSelectMixin, Select):
|
||
|
component_name = "club-ajax-select"
|
||
|
model = Club
|
||
|
schema = ClubSchema
|
||
|
|
||
|
js = [
|
||
|
"webpack/club/components/ajax-select-index.ts",
|
||
|
]
|
||
|
|
||
|
|
||
|
class AutoCompleteSelectMultipleClub(AutoCompleteSelectMixin, SelectMultiple):
|
||
|
component_name = "club-ajax-select"
|
||
|
model = Club
|
||
|
schema = ClubSchema
|
||
|
|
||
|
js = [
|
||
|
"webpack/club/components/ajax-select-index.ts",
|
||
|
]
|