.
This commit is contained in:
+5
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user