Feature/#48 crear dos enpoints para comprobantepago
-
-
-
Added 1 commit:
- 8762df5c - correcciones de errores en perfom_create
-
-
-
project/apps/edicto/api.py
try: edicto = Edicto.objects.get(estado='pendiente_de_pago') precio = Precio.objects.latest('id') monto = calculadora(edicto, precio) if edicto.usuario != self.request.user: raise UsuarioNoAutorizado serializer.validated_data['monto'] = monto serializer.validated_data['edicto'] = edicto serializer.save() except Edicto.DoesNotExist: raise EdictoNoEncontrado except Precio.DoesNotExist: raise PrecioNoEncontrado class ComprobanteViewSets(mixins.CreateModelMixin, -
-
Added 1 commit:
- 4fd465cb - correcion de api, models, y admin
-
Please register or login to post a comment