From 6e1c2db0f6827c508dccb5bd27226195882e74a0 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Tue, 10 Sep 2024 12:59:02 +0530 Subject: [PATCH] add status field to admin panel display for trnaslation and transcription --- backend/transcript/admin.py | 2 +- backend/translation/admin.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/transcript/admin.py b/backend/transcript/admin.py index d35c6cb5..ee2282fd 100644 --- a/backend/transcript/admin.py +++ b/backend/transcript/admin.py @@ -5,7 +5,7 @@ # Show particular fields in the admin panel class TranscriptAdmin(admin.ModelAdmin): - list_display = ("task", "video", "language", "transcript_type", "updated_at", "id") + list_display = ("task", "video", "language", "transcript_type", "updated_at", "id", "status") list_filter = ("video", "language", "transcript_type") search_fields = ("video", "language", "transcript_type") ordering = ("-updated_at",) diff --git a/backend/translation/admin.py b/backend/translation/admin.py index 19114afa..4a521dcf 100644 --- a/backend/translation/admin.py +++ b/backend/translation/admin.py @@ -17,6 +17,7 @@ class TranslationAdmin(admin.ModelAdmin): "translation_type", "updated_at", "id", + "status", ) list_filter = ("task", "transcript", "target_language", "translation_type") search_fields = ("task", "transcript", "target_language", "translation_type")