Example #1
0
 def perform_create(self, serializer):
     peticion = serializer.save()
     if "key" in self.request.data:
         key = self.request.data["key"]
         peticion.fuente = key
         peticion.save()
         actualizar_fuente(key)
     enviar_correo_nueva_peticion.delay()
Example #2
0
 def perform_create(self, serializer):
     comercio = serializer.save()
     if "key" in self.request.data:
         key = self.request.data["key"]
         comercio.fuente = key
         comercio.save()
         actualizar_fuente(key)
     enviar_correo_nuevo_comercio.delay()
Example #3
0
 def perform_create(self, serializer):
     contacto = serializer.save()
     if "key" in self.request.data:
         key = self.request.data["key"]
         contacto.fuente = key
         contacto.save()
         actualizar_fuente(key)
     enviar_correo_nueva_solicitud_peticion.delay()
     enviar_correo_ofreciendo_ayuda.delay(contacto.pk)