<form action="{% url 'add_participant' id={{event.id}} %}" method="POST">
但看起来django不喜欢在{%}中有一个{{}变量,我该如何解决这个问题?