From 156b10363c5a1049571e6c1d88597309c7ceab49 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Thu, 15 Aug 2013 16:25:51 +0800 Subject: * updated 'indicator.views' for front pages * use 'render' instead of 'render_to_response' * updated 'indicator/templates/indicator/NewDeleteIndex.html' to show all indicators and followed indicators --- 97suifangqa/apps/indicator/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '97suifangqa/apps/indicator/models.py') diff --git a/97suifangqa/apps/indicator/models.py b/97suifangqa/apps/indicator/models.py index f64f3db..615398f 100644 --- a/97suifangqa/apps/indicator/models.py +++ b/97suifangqa/apps/indicator/models.py @@ -230,6 +230,8 @@ class Indicator(models.Model): # {{{ 'dataType': self.dataType, 'categories_id': [c.id for c in self.categories.all()], + 'categories_name': [c.name + for c in self.categories.all()], 'units_id': [u.id for u in self.get_unit(type="all")] } -- cgit v1.2.2