📜  truncatewords 需要 2 个参数,提供 1 个 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:37.537000             🧑  作者: Mango

代码示例1
truncatewords requires 2 arguments, 1 provided

Solution here is >
You have an extra space which causes the error.

value="{{ form.username.value|default_if_none: '' }}"