mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Remove ajax_select from counters
This commit is contained in:
25
club/widgets/select.py
Normal file
25
club/widgets/select.py
Normal file
@ -0,0 +1,25 @@
|
||||
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",
|
||||
]
|
Reference in New Issue
Block a user