Skip to content

Commit 77dc5d7

Browse files
committed
Update: 카테고리별 조회시 세션 공개시간 기준으로 정렬하도록 수정
1 parent eb85b5c commit 77dc5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyconweb2022/program/viewsets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ def retrieve(self, request, *args, **kwargs):
4949
def get_queryset(self):
5050
pk = self.kwargs.get("pk")
5151
target_category = ProgramCategory.objects.get(id=pk)
52-
sessions = Proposal.objects.filter(category=target_category)
52+
sessions = Proposal.objects.filter(category=target_category).order_by("video_open_at")
5353

5454
return sessions

0 commit comments

Comments
 (0)