aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/viewsets.py')
-rw-r--r--api/viewsets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/viewsets.py b/api/viewsets.py
index 260d4b8a..b39489a8 100644
--- a/api/viewsets.py
+++ b/api/viewsets.py
@@ -30,7 +30,7 @@ from .serializers import (
)
-class DeletedMessageViewSet(GenericViewSet):
+class DeletedMessageViewSet(CreateModelMixin, GenericViewSet):
"""
View providing support for posting bulk deletion logs generated by the bot.
@@ -62,7 +62,7 @@ class DeletedMessageViewSet(GenericViewSet):
"""
queryset = MessageDeletionContext.objects.all()
- serializer = MessageDeletionContextSerializer
+ serializer_class = MessageDeletionContextSerializer
class DocumentationLinkViewSet(