Skip to content

Commit

Permalink
Implement delete tag API
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-myskov committed Nov 4, 2023
1 parent bf9b9b8 commit 8a8c31f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/recipe/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def perform_create(self, serializer):
serializer.save(user=self.request.user)


class TagViewSet(mixins.UpdateModelMixin,
class TagViewSet(mixins.DestroyModelMixin,
mixins.UpdateModelMixin,
mixins.ListModelMixin,
viewsets.GenericViewSet):
"""Manage tags in the database."""
Expand Down

0 comments on commit 8a8c31f

Please sign in to comment.