Skip to content

Commit b0146df

Browse files
Rendu dynamique des produits via le tag <objet> dans Wagtail (#1773)
Render produit name in reusable content
1 parent 0509d32 commit b0146df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qfdmd/templatetags/qfdmd_tags.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def richtext_with_objet(reusable_content, page):
1818
"""
1919
TODO: docstring
2020
"""
21-
return richtext(reusable_content)
22-
# .replace("<objet>", page.title))
21+
return richtext(reusable_content.replace("&lt;objet&gt;", page.title))
2322

2423

2524
@register.inclusion_tag("components/patchwork/patchwork.html")

0 commit comments

Comments
 (0)