2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

PEP fixes

This commit is contained in:
Oliver Walters 2019-05-07 00:11:27 +10:00
parent fe4acd48a7
commit 22ff085b15
2 changed files with 4 additions and 5 deletions

View File

@ -299,7 +299,7 @@ class UploadPartImage(AjaxView):
part = Part.objects.get(pk=kwargs.get('pk'))
except Part.DoesNotExist:
response['error'] = 'Part not found'
return JsonResponse(error_dict, status=404)
return JsonResponse(response, status=404)
# Direct image upload
if 'image_file' in request.FILES:
@ -361,7 +361,6 @@ class UploadPartImage(AjaxView):
return JsonResponse(response, status=status)
class PartEdit(AjaxUpdateView):
""" View for editing Part object """