aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/viewsets.py')
-rw-r--r--api/viewsets.py2
1 files changed, 1 insertions, 1 deletions
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):