participant page shows meetings attended
This commit is contained in:
parent
0bd93b2cea
commit
226f3afe6a
|
@ -72,7 +72,8 @@ class Meeting(ItfModel):
|
||||||
t.video = Video.objects.filter(talk__id=t.id)
|
t.video = Video.objects.filter(talk__id=t.id)
|
||||||
|
|
||||||
meeting_data['imagegallery'] = Image.objects.filter(meeting__id=meeting_id)
|
meeting_data['imagegallery'] = Image.objects.filter(meeting__id=meeting_id)
|
||||||
meeting_data['participants'] = Participant.objects.filter(meeting__id=meeting_id).order_by('name')
|
# meeting_data['participants'] = Participant.objects.filter(meeting__id=meeting_id).order_by('name')
|
||||||
|
meeting_data['participants'] = self.participants.all()
|
||||||
return meeting_data
|
return meeting_data
|
||||||
|
|
||||||
class Participant(ItfModel):
|
class Participant(ItfModel):
|
||||||
|
@ -99,7 +100,8 @@ class Participant(ItfModel):
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'short_bio': self.short_bio
|
'short_bio': self.short_bio,
|
||||||
|
'meetings': self.meetings.all()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
{% load markup %}
|
{% load markup %}
|
||||||
<div class="orange">{{ name }}:</div> {{ short_bio|markdown }}
|
<div class="orange">{{ name }}:</div> {{ short_bio|markdown }}
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<div class="orange">Meetings attended</div>
|
||||||
|
<ul>
|
||||||
|
{% for m in meetings %}
|
||||||
|
<li><a href="{{ m.get_absolute_url }}">{{ m.title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user