Skip to content
Snippets Groups Projects
Verified Commit 6bd09e68 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix redirect URL for PDF generation

parent a7caf489
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@ class CardGeneratePDFView(PermissionRequiredMixin, RevisionMixin, SingleObjectMi
messages.error(request, _("The chip number is missing."))
return redirect("cards")
redirect_url = reverse("card", args=[self.object.pk])
redirect_url = f"/app/kort/cards/{self.object.pk}/"
result = self.object.generate_pdf()
if result is True:
......
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