--- a/app/soc/views/models/group.py Fri Mar 20 21:27:14 2009 +0000
+++ b/app/soc/views/models/group.py Fri Mar 20 21:27:39 2009 +0000
@@ -91,6 +91,7 @@
new_params['list_heading'] = 'soc/group/list/heading.html'
new_params['create_extra_dynaproperties'] = {
+ 'clean_phone': cleaning.clean_numeric_only('phone'),
'clean_contact_street': cleaning.clean_ascii_only('contact_street'),
'clean_contact_city': cleaning.clean_ascii_only('contact_city'),
'clean_contact_state': cleaning.clean_ascii_only('contact_state'),
--- a/app/soc/views/models/role.py Fri Mar 20 21:27:14 2009 +0000
+++ b/app/soc/views/models/role.py Fri Mar 20 21:27:39 2009 +0000
@@ -139,6 +139,7 @@
'longitude': forms.fields.FloatField(widget=forms.HiddenInput,
required=False),
'clean_link_id': cleaning.clean_existing_user('link_id'),
+ 'clean_phone': cleaning.clean_numeric_only('phone'),
'clean_res_street': cleaning.clean_ascii_only('res_street'),
'clean_res_city': cleaning.clean_ascii_only('res_city'),
'clean_res_state': cleaning.clean_ascii_only('res_state'),