cleaned up code and integrated some simple CSS
[rapidsms] / templates / questionaires.tmpl
index ba8ae245ba7b070cbde1a91c2deb342099e913d7..907046dd8eb9307edb4f167028606a14ae07f936 100644 (file)
@@ -15,7 +15,7 @@
 <tr>
 <td>{{q.code}}</td>
 <td>{{q.description}}</td>
-<td>{{len(q.questions) or 0}}</td>
+<td>{{q.questions.count()}}</td>
 <td><a href="{{homepath}}/edit_questions/{{q.id}}">edit</a></td>
 </tr>
 {% endfor %}

Benjamin Mako Hill || Want to submit a patch?