mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 02:33:22 +00:00
25 lines
536 B
Python
25 lines
536 B
Python
from core.views.widgets.select import (
|
|
AutoCompleteSelect,
|
|
AutoCompleteSelectMultiple,
|
|
)
|
|
from sas.models import Album
|
|
from sas.schemas import AlbumSchema
|
|
|
|
_js = ["webpack/sas/components/ajax-select-index.ts"]
|
|
|
|
|
|
class AutoCompleteSelectAlbum(AutoCompleteSelect):
|
|
component_name = "album-ajax-select"
|
|
model = Album
|
|
schema = AlbumSchema
|
|
|
|
js = _js
|
|
|
|
|
|
class AutoCompleteSelectMultipleAlbum(AutoCompleteSelectMultiple):
|
|
component_name = "album-ajax-select"
|
|
model = Album
|
|
schema = AlbumSchema
|
|
|
|
js = _js
|