aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-11-18 23:38:34 +0100
committerGravatar Johannes Christ <[email protected]>2018-11-18 23:38:34 +0100
commitfd325a304b2b2590c2f8de85e9c848ccd0a900d8 (patch)
tree7b018155547d4572f92f941cca727ad713eaea87 /api/viewsets.py
parentAdd a role API viewset and mount it in the router. (diff)
Use proper attribute name.
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):