fix reviewers list in participations list
This commit is contained in:
parent
47c41fbb3c
commit
5bd9db6f94
|
@ -58,3 +58,8 @@ class Participation(PonyConfModel):
|
|||
|
||||
def is_staff(self):
|
||||
return self.is_orga() or self.user.topic_set.exists()
|
||||
|
||||
@property
|
||||
def reviewed_topics(self):
|
||||
from proposals.models import Topic
|
||||
return Topic.objects.filter(reviewers=self.user).all()
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<td><a href="{{ participation.get_absolute_url }}">{{ participation.user.username }}</a></td>
|
||||
<td>{{ participation.user.get_full_name }}</td>
|
||||
<td>{{ participation.is_orga|yesno:"✔,✘" }}</td>
|
||||
<td>{% for topic in participation.topic_set.all %}{{ topic.get_link }}{% if not forloop.last %},
|
||||
<td>{% for topic in participation.reviewed_topics %}{{ topic.get_link }}{% if not forloop.last %},
|
||||
{% endif %}{% endfor %}</td>
|
||||
<td>
|
||||
<a href="{% url 'conversation' participation.user.username %}" data-toggle="tooltip" data-placement="bottom"
|
||||
|
|
Loading…
Reference in New Issue