# HG changeset patch # User Pawel Solyga # Date 1237625245 0 # Node ID e9bc965298490f9193585fec4c6f762d1ef4fd4b # Parent a6a5f8c36d3cd9808ea1a6e9a3fd6cd555623fa4 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 diff -r a6a5f8c36d3c -r e9bc96529849 app/soc/templates/soc/models/list.html --- 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 }} diff -r a6a5f8c36d3c -r e9bc96529849 app/soc/views/helper/params.py --- 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)