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

Restrict the running of reports via API to POST requests

This commit is contained in:
Jeremy Stretch
2017-09-28 16:04:37 -04:00
parent 87fb4af5cb
commit 21485ca6e2
2 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class ReportViewSet(ViewSet):
return Response(serializer.data)
@detail_route()
@detail_route(methods=['post'])
def run(self, request, pk):
"""
Run a Report and create a new ReportResult, overwriting any previous result for the Report.