use is_orga

This commit is contained in:
Élie Bouttier 2016-07-09 23:44:52 +02:00
parent 5b28c16e5b
commit 61d0372bfd
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<th>{{ forloop.counter }}</th>
<td><a href="{{ participation.get_absolute_url }}">{{ participation.user.username }}</a></td>
<td>{{ participation.user.get_full_name }}</td>
<td>{{ participation.orga|yesno:"✔,✘" }}</td>
<td>{{ participation.is_orga|yesno:"✔,✘" }}</td>
<td>{% for topic in participation.topic_set.all %}{{ topic.get_link }}{% if not forloop.last %},
{% endif %}{% endfor %}</td>
<td>

View File

@ -16,4 +16,4 @@ def is_staff(request, user):
def can_edit_profile(request, profile):
editor = request.user.participation_set.get(site=get_current_site(request))
return editor.orga or editor.user.topic_set.filter(talk__speakers=profile.user).exists()
return editor.is_orga() or editor.user.topic_set.filter(talk__speakers=profile.user).exists()