Set ASCII-only cleaner for first and last name when dealing with roles.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 11 Aug 2009 15:56:55 -0700
changeset 2759 5a8bd9d7725c
parent 2758 688753f1d406
child 2760 13fa99bb0352
Set ASCII-only cleaner for first and last name when dealing with roles.
app/soc/views/models/role.py
--- a/app/soc/views/models/role.py	Wed Aug 12 02:37:55 2009 +0530
+++ b/app/soc/views/models/role.py	Tue Aug 11 15:56:55 2009 -0700
@@ -140,6 +140,8 @@
                                             required=False),
        'email': forms.fields.EmailField(required=True),
        'clean_link_id': cleaning.clean_existing_user('link_id'),
+       'clean_given_name': cleaning.clean_ascii_only('given_name'),
+       'clean_surname': cleaning.clean_ascii_only('surname'),
        'clean_phone': cleaning.clean_phone_number('phone'),
        'clean_res_street': cleaning.clean_ascii_only('res_street'),
        'clean_res_city': cleaning.clean_ascii_only('res_city'),