Store ingredients with stars in the DB
This commit is contained in:
parent
fbb0312c7c
commit
d32caa2c38
@ -61,7 +61,7 @@ def get_list(request):
|
||||
'prototempalte': x.category.prototempalte.name,
|
||||
'landscape': x.category.landscape,
|
||||
'designation': x.designation,
|
||||
'ingredients': quirk_bold_allergens(x.ingredients),
|
||||
'ingredients': x.ingredients,
|
||||
'description': x.description,
|
||||
'ab': x.ab,
|
||||
'color': x.color,
|
||||
@ -88,6 +88,8 @@ def generate(request):
|
||||
for key in ('designation', 'ingredients', 'description', 'color', 'AB'):
|
||||
subs[key] = payload[key]
|
||||
|
||||
subs['ingredients'] = quirk_bold_allergens(subs['ingredients'])
|
||||
|
||||
pdfpath = stickersheet.generate(template=payload['template'], subs=subs,
|
||||
out_dir=settings.TIKETTE_OUT_DIR,
|
||||
landscape=payload['landscape'])
|
||||
|
Loading…
Reference in New Issue
Block a user