Make longitude and latitude hidden fields not required in soc.views.models.role module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Mon, 02 Feb 2009 13:48:15 +0000
changeset 1175 b39345efab20
parent 1174 7316a2989134
child 1176 c211191e7d81
Make longitude and latitude hidden fields not required in soc.views.models.role module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/views/models/role.py
--- 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'),