1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardized implementation of nested ViewSets

This commit is contained in:
Jeremy Stretch
2017-01-26 17:58:36 -05:00
parent b8ca530c55
commit acfba410dd
9 changed files with 129 additions and 221 deletions

View File

@ -28,9 +28,6 @@ ERR_PRIVKEY_INVALID = "Invalid private key."
#
class SecretRoleViewSet(ModelViewSet):
"""
List and retrieve secret roles
"""
queryset = SecretRole.objects.all()
serializer_class = serializers.SecretRoleSerializer
permission_classes = [IsAuthenticated]