[views] display age range for assessments related to a Subject
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Thu, 01 Aug 2013 13:40:40 +0200
changeset 363 829c677bba09
parent 362 51ff10a16b13
child 364 6985ee412eab
[views] display age range for assessments related to a Subject
views/primary.py
--- a/views/primary.py	Thu Aug 01 13:38:55 2013 +0200
+++ b/views/primary.py	Thu Aug 01 13:40:40 2013 +0200
@@ -112,7 +112,8 @@
     __select__ = BrainomicsPrimaryView.__select__ & is_instance('Subject')
 
     def iterate_attributes(self, entity):
-        return [(self._cw._('Handedness'), entity.handedness),
+        return [(self._cw._('Age'), entity.display_age_for_assessments()),
+                (self._cw._('Handedness'), entity.handedness),
                 (self._cw._('Gender'), entity.gender),]
 
     def display_additional_header(self, entity):