Skip to content

Commit 974e5a6

Browse files
committed
Refactor: 코드 포멧 수정
1 parent 77dc5d7 commit 974e5a6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyconweb2022/program/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
class ProgramCategoryAdmin(ImportExportModelAdmin):
1111
resource_class = ProgramCategoryResource
12-
list_display = ("id", "name",)
12+
list_display = (
13+
"id",
14+
"name",
15+
)
1316

1417

1518
admin.site.register(ProgramCategory, ProgramCategoryAdmin)

pyconweb2022/program/viewsets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ 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).order_by("video_open_at")
52+
sessions = Proposal.objects.filter(category=target_category).order_by(
53+
"video_open_at"
54+
)
5355

5456
return sessions

0 commit comments

Comments
 (0)