Skip to content

Commit

Permalink
Support DELETE for chats (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Sep 14, 2023
1 parent 3d3ba43 commit 72c50d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ayushma/views/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
from rest_framework import filters, status
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framework.mixins import CreateModelMixin, ListModelMixin, RetrieveModelMixin
from rest_framework.mixins import (
CreateModelMixin,
DestroyModelMixin,
ListModelMixin,
RetrieveModelMixin,
)
from rest_framework.parsers import MultiPartParser
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
Expand All @@ -27,6 +32,7 @@ class ChatViewSet(
PartialUpdateModelMixin,
RetrieveModelMixin,
ListModelMixin,
DestroyModelMixin,
):
queryset = Chat.objects.all()
serializer_class = ChatSerializer
Expand Down

0 comments on commit 72c50d3

Please sign in to comment.