theatre group ... data points added to templates..revision 2
This commit is contained in:
parent
757843da28
commit
ff22815bac
|
@ -253,7 +253,7 @@ class TheatreGroup(ItfModel):
|
||||||
'tel':self.tel,
|
'tel':self.tel,
|
||||||
'nature_of_work': [obj for obj in self.nature_of_work.all().order_by('groupgroupoccupation__is_main')],
|
'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()],
|
'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()],
|
'languages': [obj.name for obj in self.languages.all()],
|
||||||
#'venues': [obj for obj in self.locations],
|
#'venues': [obj for obj in self.locations],
|
||||||
'founded': self.year_founded,
|
'founded': self.year_founded,
|
||||||
|
|
|
@ -65,9 +65,10 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for training in trainings %}
|
{% 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 }}
|
<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>
|
</li>
|
||||||
|
|
||||||
|
{% for loc in training.locations.all %} {{ loc.city }} {% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user