Skip to content

Commit

Permalink
Fix allowed http methods in pacs files API
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernal0019 committed Jul 11, 2024
1 parent 58d233e commit 99cc0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chris_backend/pacsfiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class PACSFileList(generics.ListAPIView):
"""
A view for the collection of PACS files.
"""
http_method_names = ['get', 'post']
http_method_names = ['get']
queryset = PACSFile.get_base_queryset()
serializer_class = PACSFileSerializer
permission_classes = (permissions.IsAuthenticated, IsChrisOrIsPACSUserReadOnly)
Expand Down
3 changes: 1 addition & 2 deletions chris_backend/userfiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def perform_create(self, serializer):

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

Expand Down

0 comments on commit 99cc0d0

Please sign in to comment.