Skip to content

Commit 776d175

Browse files
committed
Refactor: 코드 포멧 수정
1 parent 4120ba9 commit 776d175

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyconweb2022/program/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def setUp(self) -> None:
5454
new_proposal.save()
5555

5656
def test_ProposalViewSet(self):
57-
req_body = {
58-
}
57+
req_body = {}
5958

6059
request = APIRequestFactory().get("/api/program/list", req_body)
6160
response = ProposalViewSet().list(request=request)

pyconweb2022/program/viewsets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99

1010
class ProposalViewSet(ReadOnlyModelViewSet):
11-
queryset = Proposal.objects.filter(accepted=True).order_by("track_num").order_by("video_open_at")
11+
queryset = (
12+
Proposal.objects.filter(accepted=True)
13+
.order_by("track_num")
14+
.order_by("video_open_at")
15+
)
1216
serializer_class = ProposalSerializer
1317
permission_classes = [AllowAny]
1418

0 commit comments

Comments
 (0)