Beispiel #1
0
 def get(self, request, *args, **kwargs):
     json_ids = request.GET['vars']
     array_ids = json.loads(json_ids)
     notes = Note.objects.filter(pk__in=array_ids).order_by('-id')
     return html_to_pdf("bitacora/notes_pdf.html", locals())
Beispiel #2
0
 def get(self, request, note_pk, *args, **kwargs):
     note = get_object_or_404(Note, pk=note_pk)
     return html_to_pdf("bitacora/note_pdf.html", locals())