From ff22815bace223d7396e5f2ba05e78f04a55f089 Mon Sep 17 00:00:00 2001 From: Johnson Chetty Date: Fri, 31 Aug 2012 15:43:43 +0200 Subject: [PATCH] theatre group ... data points added to templates..revision 2 --- itf/itfprofiles/models.py | 2 +- itf/templates/modules/itfprofiles/theatregroup.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/itf/itfprofiles/models.py b/itf/itfprofiles/models.py index 9669e84..6b694cb 100644 --- a/itf/itfprofiles/models.py +++ b/itf/itfprofiles/models.py @@ -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, diff --git a/itf/templates/modules/itfprofiles/theatregroup.html b/itf/templates/modules/itfprofiles/theatregroup.html index 1b61c93..b31eb70 100644 --- a/itf/templates/modules/itfprofiles/theatregroup.html +++ b/itf/templates/modules/itfprofiles/theatregroup.html @@ -65,9 +65,10 @@