Skip to content

Commit 1f27fd7

Browse files
committed
fix: 누락된 필드 추가
1 parent 3f5bf16 commit 1f27fd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/admin_api/serializers/event/presentation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@ def get_queryset(self):
3131
categories = PresentationCategoryField(
3232
many=True, required=False, queryset=PresentationCategory.objects.filter_active()
3333
)
34+
image = serializers.PrimaryKeyRelatedField(
35+
queryset=PublicFile.objects.filter_active(), allow_null=True, required=False
36+
)
3437

3538
class Meta:
3639
model = Presentation
3740
fields = COMMON_ADMIN_FIELDS + (
38-
"categories",
3941
"type",
42+
"categories",
4043
"title_ko",
4144
"title_en",
45+
"image",
4246
"description_ko",
4347
"description_en",
4448
)

0 commit comments

Comments
 (0)