core: fix document.status unique key

This commit is contained in:
undefined committed 2021-07-25 21:50:41 +08:00
1 parent 08585bd3e9
commit b4d77d3a2a
5 files changed
+16 -4

No files matched your search

@@ -38,7 +38,7 @@
<span class="icon icon-award"></span> {{ _('View Contest') }}
</a></li>
{% endif %}
{% if not attended and not model.contest.isDone(tdoc) %}
{% if not (attended or tdoc.attended) and not model.contest.isDone(tdoc) %}
<li class="menu__item">
{% if handler.user.hasPerm(perm.PERM_ATTEND_CONTEST) and handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<form action="{{ url('contest_detail', tid=tdoc.docId) }}" method="POST">