Example #1
0
 def get(self, request, id_notifica):
     notifica = Notifica.objects.get(id=id_notifica)
     f = datetime.datetime.now()
     f_hoy = f.strftime("%d de %B de %Y")
     pdf = render_pdf("notifica/notifica_pdf.html", {
         'notificas': notifica,
         'fecha_hoy': f_hoy
     })
     return HttpResponse(pdf, content_type='application/pdf')
Example #2
0
 def get(self, request, id_obra):
     obra = Obra.objects.get(id=id_obra)
     f = datetime.datetime.now()
     f_hoy = f.strftime("%d de %B de %Y")
     pdf = render_pdf("obra/obra_pdf.html", {
         'obras': obra,
         'fecha_hoy': f_hoy
     })
     return HttpResponse(pdf, content_type='application/pdf')
Example #3
0
 def get(self, request, id_plano):
     plano = Plano.objects.get(id=id_plano)
     pdf = render_pdf("plano/pago3_pdf.html", {'planos': plano})
     return HttpResponse(pdf, content_type='application/pdf')