Fixing redirect to pdf
This commit is contained in:
@@ -87,7 +87,7 @@ def payment_page(request):
|
|||||||
document = get_object_or_404(Document, organization=organization)
|
document = get_object_or_404(Document, organization=organization)
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
pdf_url = f"{site_domain}/document/{document.id}/"
|
pdf_url = f"{site_domain}/pdf/{document.id}/"
|
||||||
send_document_email(email, pdf_url, document)
|
send_document_email(email, pdf_url, document)
|
||||||
return redirect(pdf_url)
|
return redirect(pdf_url)
|
||||||
|
|
||||||
|
|||||||
@@ -17,4 +17,5 @@ django-celery-results==2.5.1
|
|||||||
redis==5.2.1
|
redis==5.2.1
|
||||||
weasyprint==65.1
|
weasyprint==65.1
|
||||||
matplotlib==3.10.1
|
matplotlib==3.10.1
|
||||||
|
pdf2image==1.17.0
|
||||||
|
pillow==11.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user