# HG changeset patch # User Sverre Rabbelier # Date 1252708609 -7200 # Node ID ac5f77cd60467a0a646297358837af803db21b1f # Parent c0e78185444cc867479831e6e0b89d18e50474db Fix 500 when saving /site/edit without email When saving /site/edit with no no_reply_email set, a 500 error page would be returned due to an empty value being passed as value to the datastore (which is not allowed for email fields). diff -r c0e78185444c -r ac5f77cd6046 app/soc/views/models/site.py --- a/app/soc/views/models/site.py Sat Sep 12 01:22:03 2009 +0200 +++ b/app/soc/views/models/site.py Sat Sep 12 00:36:49 2009 +0200 @@ -90,6 +90,7 @@ filter_fields={'prefix': new_params['document_prefix']}, label=ugettext('Terms of Service Document link ID'), help_text=soc.models.work.Work.link_id.help_text), + 'clean_noreply_email': cleaning.clean_empty_field('noreply_email'), } patterns = []