Skip to content

Commit

Permalink
[update] set Serializer to PostGoodsViewSet
Browse files Browse the repository at this point in the history
  • Loading branch information
rkun123 committed Jul 7, 2021
1 parent 0a511e5 commit 4e59550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/works/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def create(self, request, work_pk=None):
return super(CommentViewSet, self).create(request)

class PostGoodsViewSet(viewsets.GenericViewSet, CreateModelMixin):
serializer_class = WorkSerializer

def create(self, request, *args, **kwargs):
print(kwargs)
Expand Down

0 comments on commit 4e59550

Please sign in to comment.