From 86574ca3655d2ad043d16858382059934f162ad0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 7 Mar 2012 12:12:43 +0530 Subject: [PATCH] allow wkhtmltopdf to render / print --- printaform/formaprint/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printaform/formaprint/views.py b/printaform/formaprint/views.py index f87813b..12659bc 100755 --- a/printaform/formaprint/views.py +++ b/printaform/formaprint/views.py @@ -93,13 +93,13 @@ def save_item_as(request): new_item.save() return HttpResponse("/edit_item/?id=%d" % new_item.id) -@login_required + def render_item(request): id = request.GET.get("id", 0) item = get_object_or_404(Item, pk=id) return HttpResponse(item.render()) -@login_required + def print_item(request): id = request.GET.get("id", 0) item = get_object_or_404(Item, pk=id)