定制图像标签

时间:2018-11-20 09:23:53

标签: django wagtail

有没有人知道如何创建一个自定义图像标签,以向Wa中的演绎文本添加文本? 我在文档中看不到任何内容。 tnx

1 个答案:

答案 0 :(得分:0)

https://docs.djangoproject.com/en/2.1/howto/custom-template-tags/中描述了在Django中定义自定义标签的过程。这可以用于实现调用Wagtail的Uncaught Exception: Multiple non-persisted new entities were found through the given association graph * A new entity was found through the relationship 'XXX' that was not configured to cascade persist operations for entity: XXX\Entity\Tiers@00000000257b87500000000018499b62. 标签的标签,并输出所需的文本。