데모버전 안정화
This commit is contained in:
1 parent
7038faaf74
commit
1e16e0e3eb
26 files changed
+1226
-109
No files matched your search
@@ -1,6 +1,6 @@
|
||||
from sqladmin import ModelView
|
||||
|
||||
from app.song.models import Song
|
||||
from app.song.models import Song, SongTimestamp
|
||||
|
||||
|
||||
class SongAdmin(ModelView, model=Song):
|
||||
@@ -67,3 +67,59 @@ class SongAdmin(ModelView, model=Song):
|
||||
"song_result_url": "결과 URL",
|
||||
"created_at": "생성일시",
|
||||
}
|
||||
|
||||
|
||||
class SongTimestampAdmin(ModelView, model=SongTimestamp):
|
||||
name = "노래 타임스탬프"
|
||||
name_plural = "노래 타임스탬프 목록"
|
||||
icon = "fa-solid fa-clock"
|
||||
category = "노래 관리"
|
||||
page_size = 20
|
||||
|
||||
column_list = [
|
||||
"id",
|
||||
"suno_audio_id",
|
||||
"order_idx",
|
||||
"lyric_line",
|
||||
"start_time",
|
||||
"end_time",
|
||||
"created_at",
|
||||
]
|
||||
|
||||
column_details_list = [
|
||||
"id",
|
||||
"suno_audio_id",
|
||||
"order_idx",
|
||||
"lyric_line",
|
||||
"start_time",
|
||||
"end_time",
|
||||
"created_at",
|
||||
]
|
||||
|
||||
form_excluded_columns = ["created_at"]
|
||||
|
||||
column_searchable_list = [
|
||||
SongTimestamp.suno_audio_id,
|
||||
SongTimestamp.lyric_line,
|
||||
]
|
||||
|
||||
column_default_sort = (SongTimestamp.created_at, True)
|
||||
|
||||
column_sortable_list = [
|
||||
SongTimestamp.id,
|
||||
SongTimestamp.suno_audio_id,
|
||||
SongTimestamp.order_idx,
|
||||
SongTimestamp.start_time,
|
||||
SongTimestamp.end_time,
|
||||
SongTimestamp.created_at,
|
||||
]
|
||||
|
||||
column_labels = {
|
||||
"id": "ID",
|
||||
"suno_audio_id": "Suno 오디오 ID",
|
||||
"order_idx": "순서",
|
||||
"lyric_line": "가사",
|
||||
"start_time": "시작 시간",
|
||||
"end_time": "종료 시간",
|
||||
"created_at": "생성일시",
|
||||
}
|
||||
Reference in new issue
Block a user