Fix GCI profile create form
diff --git a/app/soc/modules/gci/views/profile.py b/app/soc/modules/gci/views/profile.py
index c03db89..8bdd650 100644
--- a/app/soc/modules/gci/views/profile.py
+++ b/app/soc/modules/gci/views/profile.py
@@ -56,7 +56,8 @@
PROFILE_EXCLUDE = profile.PROFILE_EXCLUDE + [
'automatic_task_subscription', 'notify_comments'
- ]
+ 'agreed_to_tos', 'longtitude', 'latitude', 'publish_location']
+
class GCIProfileForm(profile.ProfileForm):
"""Django form to edit GCI profile page.
@@ -82,9 +83,7 @@
class Meta:
model = GCIProfile
css_prefix = 'gci_profile'
- exclude = PROFILE_EXCLUDE + [
- 'agreed_to_tos', 'longtitude', 'latitude', 'publish_location']
-
+ exclude = PROFILE_EXCLUDE
widgets = forms.choiceWidgets(model,
['res_country', 'ship_country',
'tshirt_style', 'tshirt_size', 'gender'])