Fix broken list_msg that caused 500 errors on many pages that contain list. Also make sure not to display list_msg if it is None.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 21 Mar 2009 08:47:25 +0000
changeset 1975 e9bc96529849
parent 1974 a6a5f8c36d3c
child 1976 be994529deee
Fix broken list_msg that caused 500 errors on many pages that contain list. Also make sure not to display list_msg if it is None. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/templates/soc/models/list.html
app/soc/views/helper/params.py
--- a/app/soc/templates/soc/models/list.html	Sat Mar 21 01:07:40 2009 +0000
+++ b/app/soc/templates/soc/models/list.html	Sat Mar 21 08:47:25 2009 +0000
@@ -17,7 +17,9 @@
 
 {% block body %}
 
+{% if list_msg %}
 {{ list_msg|safe }}
+{% endif %}
 
 {% if list.empty %}
 {{ no_lists_msg }}
--- a/app/soc/views/helper/params.py	Sat Mar 21 01:07:40 2009 +0000
+++ b/app/soc/views/helper/params.py	Sat Mar 21 08:47:25 2009 +0000
@@ -307,6 +307,7 @@
   new_params['edit_dynainclude'] = None
   new_params['edit_dynaexclude'] = None
   new_params['edit_dynaproperties'] = edit_dynaproperties
+  new_params['list_msg'] = None
 
   params = dicts.merge(params, new_params)