kwargs = {
'cover': True,
}
- if 'no-cover' in customizations:
+ if 'nocover' in customizations:
kwargs['cover'] = False
- customizations.remove('no-cover')
+ customizations.remove('nocover')
wldoc = Book.objects.get(pk=book_id).wldocument()
pdf = wldoc.as_pdf(
customizations=customizations,