use is_orga
This commit is contained in:
parent
5b28c16e5b
commit
61d0372bfd
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue