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,
|
'prototempalte': x.category.prototempalte.name,
|
||||||
'landscape': x.category.landscape,
|
'landscape': x.category.landscape,
|
||||||
'designation': x.designation,
|
'designation': x.designation,
|
||||||
'ingredients': quirk_bold_allergens(x.ingredients),
|
'ingredients': x.ingredients,
|
||||||
'description': x.description,
|
'description': x.description,
|
||||||
'ab': x.ab,
|
'ab': x.ab,
|
||||||
'color': x.color,
|
'color': x.color,
|
||||||
@ -88,6 +88,8 @@ def generate(request):
|
|||||||
for key in ('designation', 'ingredients', 'description', 'color', 'AB'):
|
for key in ('designation', 'ingredients', 'description', 'color', 'AB'):
|
||||||
subs[key] = payload[key]
|
subs[key] = payload[key]
|
||||||
|
|
||||||
|
subs['ingredients'] = quirk_bold_allergens(subs['ingredients'])
|
||||||
|
|
||||||
pdfpath = stickersheet.generate(template=payload['template'], subs=subs,
|
pdfpath = stickersheet.generate(template=payload['template'], subs=subs,
|
||||||
out_dir=settings.TIKETTE_OUT_DIR,
|
out_dir=settings.TIKETTE_OUT_DIR,
|
||||||
landscape=payload['landscape'])
|
landscape=payload['landscape'])
|
||||||
|
Loading…
Reference in New Issue
Block a user