Commit aea4390a authored by John Red Medrano's avatar John Red Medrano

fixing user image

parent 91e4be99
......@@ -401,6 +401,10 @@ class UserViewSet(viewsets.ModelViewSet):
# DELETE FROM PHYSICAL
FileHelper.DeleteFile(path=item.image.path)
FileHelper.DeleteFile(path=eximages.first().image.path)
eximages.first().delete()
# self.serializer_class = serializer.UserImageSerializer
data = serializer.UserImageSerializer(data=request.data)
......
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