creating custom viewset in rest_framework/viewsets.py other than ModelViewSet #9052
Unanswered
jelanmathewjames
asked this question in
Ideas & Suggestions
Replies: 1 comment 1 reply
-
I really don't understand the question |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
creating concrete ViewSets classes like in rest_framework/generics.py.
eg :
class CreateViewSet(mixins.CreateModelMixin, GenericViewSet):
pass
class ListCreateViewSet(mixins.CreateModelMixin,mixins.ListModelMixin, GenericViewSet):
pass
class ListViewSet(mixins.ListModelMixin, GenericViewSet):
pass
class DeleteViewSets(mixins.DestroyModelMixin, GenericViewSet):
pass
class UpdateViewSets(mixins.UpdateModelMixin, GenericViewSet):
pass
Beta Was this translation helpful? Give feedback.
All reactions