From fd325a304b2b2590c2f8de85e9c848ccd0a900d8 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sun, 18 Nov 2018 23:38:34 +0100 Subject: Use proper attribute name. --- api/viewsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/viewsets.py') diff --git a/api/viewsets.py b/api/viewsets.py index 8efc999e..8dca5b2a 100644 --- a/api/viewsets.py +++ b/api/viewsets.py @@ -301,7 +301,7 @@ class RoleViewSet(ModelViewSet): """ queryset = Role.objects.all() - serializer = RoleSerializer + serializer_class = RoleSerializer class SnakeFactViewSet(ListModelMixin, GenericViewSet): -- cgit v1.2.3