diff options
author | 2018-11-18 23:38:34 +0100 | |
---|---|---|
committer | 2018-11-18 23:38:34 +0100 | |
commit | fd325a304b2b2590c2f8de85e9c848ccd0a900d8 (patch) | |
tree | 7b018155547d4572f92f941cca727ad713eaea87 /api/viewsets.py | |
parent | Add 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.py | 2 |
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): |