Skip to content

Commit

Permalink
Merge pull request #219 from rackerlabs/add-missing-querysets-to-api
Browse files Browse the repository at this point in the history
Added missing queryset back to API views.
  • Loading branch information
derpadoo authored Jun 26, 2020
2 parents 2943078 + b504dd7 commit 9091c3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion master/django_scantron/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.34"
__version__ = "1.35"
5 changes: 5 additions & 0 deletions master/django_scantron/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class AgentViewSet(DefaultsMixin, viewsets.ModelViewSet):

model = Agent
serializer_class = AgentSerializer
queryset = Agent.objects.all()
permission_classes = (IsAuthenticated, IsAdminUser)


Expand All @@ -73,6 +74,7 @@ class GloballyExcludedTargetViewSet(DefaultsMixin, viewsets.ModelViewSet):

model = GloballyExcludedTarget
serializer_class = GloballyExcludedTargetSerializer
queryset = GloballyExcludedTarget.objects.all()
permission_classes = (IsAuthenticated, IsAdminUser)


Expand All @@ -81,6 +83,7 @@ class ScanCommandViewSet(DefaultsMixin, viewsets.ModelViewSet):

model = ScanCommand
serializer_class = ScanCommandSerializer
queryset = ScanCommand.objects.all()
permission_classes = (IsAuthenticated, IsAdminUser)


Expand All @@ -89,6 +92,7 @@ class SiteViewSet(DefaultsMixin, viewsets.ModelViewSet):

model = Site
serializer_class = SiteSerializer
queryset = Site.objects.all()
permission_classes = (IsAuthenticated, IsAdminUser)


Expand All @@ -97,6 +101,7 @@ class ScanViewSet(DefaultsMixin, viewsets.ModelViewSet):

model = Scan
serializer_class = ScanSerializer
queryset = Scan.objects.all()
permission_classes = (IsAuthenticated, IsAdminUser)


Expand Down

0 comments on commit 9091c3a

Please sign in to comment.