allow wkhtmltopdf to render / print
This commit is contained in:
parent
83f1d36043
commit
86574ca365
|
@ -93,13 +93,13 @@ def save_item_as(request):
|
||||||
new_item.save()
|
new_item.save()
|
||||||
return HttpResponse("/edit_item/?id=%d" % new_item.id)
|
return HttpResponse("/edit_item/?id=%d" % new_item.id)
|
||||||
|
|
||||||
@login_required
|
|
||||||
def render_item(request):
|
def render_item(request):
|
||||||
id = request.GET.get("id", 0)
|
id = request.GET.get("id", 0)
|
||||||
item = get_object_or_404(Item, pk=id)
|
item = get_object_or_404(Item, pk=id)
|
||||||
return HttpResponse(item.render())
|
return HttpResponse(item.render())
|
||||||
|
|
||||||
@login_required
|
|
||||||
def print_item(request):
|
def print_item(request):
|
||||||
id = request.GET.get("id", 0)
|
id = request.GET.get("id", 0)
|
||||||
item = get_object_or_404(Item, pk=id)
|
item = get_object_or_404(Item, pk=id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user