Changeset - a65e79a6c323
[Not reviewed]
default
0 1 0
Dennis Fink - 3 years ago 2022-05-10 23:36:24
dennis.fink@c3l.lu
Automatically download PDF
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
c3l_membership/views.py
Show inline comments
 
@@ -132,6 +132,9 @@ def index():
 
            voting=True if form.membership.data == "regular" else False,
 
            xml=xml_template.format(**xml_data),
 
        )
 
        return render_pdf(HTML(string=html))
 
        return render_pdf(
 
            HTML(string=html),
 
            download_filename=f"C3L_Membership_{form.username.data}.pdf",
 
        )
 

	
 
    return render_template("index.html", form=form, crypto_error=False)
0 comments (0 inline, 0 general)