Skip to content

Commit 99cc0d0

Browse files
committed
Fix allowed http methods in pacs files API
1 parent 58d233e commit 99cc0d0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

chris_backend/pacsfiles/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class PACSFileList(generics.ListAPIView):
7171
"""
7272
A view for the collection of PACS files.
7373
"""
74-
http_method_names = ['get', 'post']
74+
http_method_names = ['get']
7575
queryset = PACSFile.get_base_queryset()
7676
serializer_class = PACSFileSerializer
7777
permission_classes = (permissions.IsAuthenticated, IsChrisOrIsPACSUserReadOnly)

chris_backend/userfiles/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ def perform_create(self, serializer):
4242

4343
def list(self, request, *args, **kwargs):
4444
"""
45-
Overriden to append document-level link relations, a query list and a
46-
collection+json template to the response.
45+
Overriden to append a query list and a collection+json template to the response.
4746
"""
4847
response = super(UserFileList, self).list(request, *args, **kwargs)
4948

0 commit comments

Comments
 (0)