Make longitude and latitude hidden fields not required in soc.views.models.role module.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/role.py Mon Feb 02 10:15:07 2009 +0000
+++ b/app/soc/views/models/role.py Mon Feb 02 13:48:15 2009 +0000
@@ -119,8 +119,10 @@
new_params['edit_template'] = 'soc/role/edit.html'
new_params['create_extra_dynafields'] = {
- 'latitude':forms.fields.FloatField(widget=forms.HiddenInput),
- 'longitude': forms.fields.FloatField(widget=forms.HiddenInput),
+ 'latitude':forms.fields.FloatField(widget=forms.HiddenInput,
+ required=False),
+ 'longitude': forms.fields.FloatField(widget=forms.HiddenInput,
+ required=False),
'clean_link_id': cleaning.clean_existing_user('link_id'),
'clean_home_page': cleaning.clean_url('home_page'),
'clean_blog': cleaning.clean_url('blog'),