aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-20 10:53:06 +0100
committerGravatar Johannes Christ <[email protected]>2019-01-20 10:53:06 +0100
commit617219c425b8f54bb51756eb6be810aee314abc8 (patch)
tree1d749c36ea93e458ccd580cec7e4bc25f3f7d748 /api/viewsets.py
parentAllow message content to be blank. (diff)
Finish the logs API.
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(