aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/models.py
diff options
context:
space:
mode:
Diffstat (limited to '97suifangqa/apps/indicator/models.py')
-rw-r--r--97suifangqa/apps/indicator/models.py2
1 files changed, 2 insertions, 0 deletions
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")]
}