Skip to content
Snippets Groups Projects
Commit 3291285b authored by permcu's avatar permcu
Browse files

Add missing PDFFile-lookup

parent 495aa84b
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -142,7 +142,7 @@ def generate_full_register_printout(
recorder.set_progress(3 + len(groups), _number_of_steps, _("Generating template ..."))
file_object, result = generate_pdf_from_template(
"alsijil/print/register_for_group.html", context, file_object=file_object
"alsijil/print/register_for_group.html", context, file_object=PDFFile.objects.get(pk=file_object)
)
recorder.set_progress(4 + len(groups), _number_of_steps, _("Generating PDF ..."))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment