Sith/sas/widgets/select.py

25 lines
536 B
Python
Raw Normal View History

from core.views.widgets.select import (
AutoCompleteSelect,
AutoCompleteSelectMultiple,
)
2024-10-21 08:30:35 +00:00
from sas.models import Album
from sas.schemas import AlbumSchema
_js = ["webpack/sas/components/ajax-select-index.ts"]
2024-10-21 08:30:35 +00:00
class AutoCompleteSelectAlbum(AutoCompleteSelect):
2024-10-21 08:30:35 +00:00
component_name = "album-ajax-select"
model = Album
schema = AlbumSchema
js = _js
2024-10-21 08:30:35 +00:00
class AutoCompleteSelectMultipleAlbum(AutoCompleteSelectMultiple):
2024-10-21 08:30:35 +00:00
component_name = "album-ajax-select"
model = Album
schema = AlbumSchema
js = _js