Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 12b6a83241ecd26566a06058dd98a4fad4283797
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Dec 11 18:57:02 2012 +0100
Make the region in the forms a SelectionBox rather than a TextField
---------------------------------------------------------------
fedocal/forms.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/fedocal/forms.py b/fedocal/forms.py
index 6ca86d3..b2512b3 100644
--- a/fedocal/forms.py
+++ b/fedocal/forms.py
@@ -97,7 +97,13 @@ class AddMeetingForm(wtf.Form):
information = wtf.TextAreaField('Information')
- meeting_region = wtf.TextField('Region')
+ meeting_region = wtf.SelectField('Region',
+ [wtf.validators.optional()],
+ choices=[('APAC', 'APAC'),
+ ('EMEA', 'EMEA'),
+ ('LATAM', 'LATAM'),
+ ('NA', 'NA')]
+ )
# Recursion
frequency = wtf.SelectField('Repeat every',