Skip to content

Commit

Permalink
Merge pull request #396 from sparcs-kaist/feat/board-detail
Browse files Browse the repository at this point in the history
Use detail serializer for GET method
  • Loading branch information
injoonH authored Jul 24, 2023
2 parents 285132f + ffa36c7 commit a92c4a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/core/views/viewsets/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class BoardViewSet(viewsets.ReadOnlyModelViewSet, ActionAPIViewSet):
serializer_class = BoardSerializer
permission_classes = (permissions.IsAuthenticated,)
action_serializer_class = {
"retrieve": BoardDetailActionSerializer,
"list": BoardDetailActionSerializer,
}
lookup_field = "slug"

0 comments on commit a92c4a1

Please sign in to comment.