Add keyword arguments to get_object_or_404 uses

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-11 20:53:33 -04:00
parent 456c322c19
commit f6f9287e33
38 changed files with 169 additions and 153 deletions

View File

@@ -21,7 +21,7 @@ class APIStagingSourceFileView(generics.GenericAPIView):
def get(self, request, staging_folder_pk, encoded_filename):
staging_folder = get_object_or_404(
StagingFolderSource, pk=staging_folder_pk
klass=StagingFolderSource, pk=staging_folder_pk
)
return Response(
StagingFolderFileSerializer(