From 64ea1f6bb4d6c67bbe641403b91c282432f29a34 Mon Sep 17 00:00:00 2001 From: AdalbertoCV <34152734@uaz.edu.mx> Date: Wed, 23 Oct 2024 20:51:47 -0600 Subject: [PATCH] =?UTF-8?q?Correxi=C3=B3n=20error=20500=20en=20actualizaci?= =?UTF-8?q?=C3=B3n=20de=20datos=20bancarios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cosiap_api/users/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cosiap_api/users/views.py b/cosiap_api/users/views.py index 06b31a5..b987e32 100644 --- a/cosiap_api/users/views.py +++ b/cosiap_api/users/views.py @@ -295,6 +295,8 @@ class DatosBancariosAPIView(BasePermissionAPIView): Método put para manejar la edición de los datos bancarios ''' + data = {} + try: user = request.user solicitante = Solicitante.objects.get(id = user.id) @@ -304,8 +306,8 @@ class DatosBancariosAPIView(BasePermissionAPIView): if serializer.is_valid(): # guardamos los cambios serializer.save() - Mensaje.success(response_data, 'Datos bancarios actualizados.') - return Response(response_data, status=status.HTTP_200_OK) + Mensaje.success(data, 'Datos bancarios actualizados.') + return Response(data, status=status.HTTP_200_OK) else: return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) except Exception as e: -- GitLab