This commit is contained in:
Ross
2025-12-06 21:12:51 +00:00
parent 013063fd61
commit 81397e8437
6 changed files with 33 additions and 7 deletions
+5 -1
View File
@@ -451,7 +451,11 @@ def print_preview(request):
for i in range(0, len(ordered), per_page):
pages.append(ordered[i:i+per_page])
return render(request, 'cards/printable.html', {'pages': pages, 'design': design, 'scale': scale})
# Include the active background (if any) so fragments that fall back to
# a global `background` variable can render correctly in the printable view.
background = BackgroundImage.get_active() if BackgroundImage.objects.exists() else None
return render(request, 'cards/printable.html', {'pages': pages, 'design': design, 'scale': scale, 'background': background})
def _parse_pasted_input(text):