Commit 2f593264 authored by brdunn's avatar brdunn
Browse files

updated views

parent e5255c77
......@@ -41,17 +41,17 @@ class CreateRecord(generics.CreateAPIView):
# permission_classes = (permissions.IsAuthenticated)
serializer_class = serializers.RecordSerializer
class CreateHost(generics.CreateAPIView):
class CreateHost(generics.ListCreateAPIView):
queryset = models.Host.objects.all()
# permission_classes = (permissions.IsAuthenticated)
serializer_class = serializers.HostSerializer
class CreateAdapter(generics.CreateAPIView):
class CreateAdapter(generics.ListCreateAPIView):
queryset = models.Adapter.objects.all()
# permission_classes = (permissions.IsAuthenticated)
serializer_class = serializers.AdapterSerializer
class CreateMac(generics.CreateAPIView):
class CreateMac(generics.ListCreateAPIView):
queryset = models.Mac_Addr.objects.all()
# permission_classes = (permissions.IsAuthenticated)
serializer_class = serializers.MacAddrSerializer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment