Add keyword arguments to get_object_or_404 uses
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user