Commit 61b95854 authored by John Red Medrano's avatar John Red Medrano

update value of file_name to request.name

parent 156b9f9f
...@@ -47,7 +47,7 @@ class MasterAttachmentViewSet(viewsets.ModelViewSet): ...@@ -47,7 +47,7 @@ class MasterAttachmentViewSet(viewsets.ModelViewSet):
file_name = str(data.url).split('/') file_name = str(data.url).split('/')
body['id'] = data.id body['id'] = data.id
body['file_name'] = file_name[1] body['file_name'] = instance.name
attachments.append(body) attachments.append(body)
return Response( return Response(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment