theatre group ... data points added to templates..revision 2

This commit is contained in:
Johnson Chetty 2012-08-31 15:43:43 +02:00
parent 757843da28
commit ff22815bac
2 changed files with 4 additions and 3 deletions

View File

@ -253,7 +253,7 @@ class TheatreGroup(ItfModel):
'tel':self.tel,
'nature_of_work': [obj for obj in self.nature_of_work.all().order_by('groupgroupoccupation__is_main')],
'venues': [obj for obj in self.locations.all()],
'trainings': [obj for obj in self.trainings.all()],
'trainings': [obj for obj in self.training_set.all()],
'languages': [obj.name for obj in self.languages.all()],
#'venues': [obj for obj in self.locations],
'founded': self.year_founded,

View File

@ -65,9 +65,10 @@
<ul>
{% for training in trainings %}
<li>{{ training }} {{ training.title }} {{ training.desc }} {{ training.person }} {{ training.area }} {{ training.with_whom }} {{ training.where }} {{ training.from_when }} {{ training.until_when }}
{% for loc in training.locations %} {{ loc.city }} {% endfor %}
</li>
{% for loc in training.locations.all %} {{ loc.city }} {% endfor %}
{% endfor %}
</ul>
</div>