Always show the accepted organizations list even when there are None.
authorLennard de Rijk <ljvderijk@gmail.com>
Wed, 18 Mar 2009 16:21:19 +0000
changeset 1924 00445d599421
parent 1923 ba42b6cda8cc
child 1925 cdc447d1ca0e
Always show the accepted organizations list even when there are None. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Wed Mar 18 16:15:32 2009 +0000
+++ b/app/soc/views/models/program.py	Wed Mar 18 16:21:19 2009 +0000
@@ -221,11 +221,8 @@
     ao_params['list_description'] = ugettext(
         "An overview of all accepted organizations.")
 
-    ao_list = lists.getListContent(request, ao_params, filter, idx=1,
-                                   need_content=True)
-
-    if ao_list:
-      contents.append(ao_list)
+    ao_list = lists.getListContent(request, ao_params, filter, idx=1)
+    contents.append(ao_list)
 
     return self._list(request, params, contents, page_name)