Clean the e-mail field
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 19 Feb 2009 19:57:07 +0000
changeset 1396 2238f2af7428
parent 1395 08dbb5aa1dc9
child 1397 c63de68dadec
Clean the e-mail field Patch by: Sverre Rabbelier
app/soc/views/models/site.py
--- a/app/soc/views/models/site.py	Thu Feb 19 19:56:24 2009 +0000
+++ b/app/soc/views/models/site.py	Thu Feb 19 19:57:07 2009 +0000
@@ -26,6 +26,7 @@
 from django.utils.translation import ugettext
 
 from soc.logic import accounts
+from soc.logic import cleaning
 from soc.logic import dicts
 from soc.views.helper import access
 from soc.views.helper import redirects
@@ -72,6 +73,7 @@
 
     new_params['create_extra_dynafields'] = {
         'link_id': forms.CharField(widget=forms.HiddenInput, required=True),
+        'clean_noreply_email': cleaning.clean_empty_field('noreply_email'),
         }
     new_params['edit_extra_dynafields'] = {
         'link_id': forms.CharField(widget=forms.HiddenInput, required=True),