Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 113432b

Browse files
committed
preparing to add kosovo as country
1 parent 8940903 commit 113432b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/forms/event_form.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
class AddEventForm(forms.ModelForm):
9+
910
email_errors = {
1011
'required': u'Please enter a valid email, so we can contact you in case of questions.',
1112
'invalid': u'Can you please check if this is a valid email address?',
@@ -158,6 +159,11 @@ class SearchEventForm(forms.Form):
158159
countries._countries.append(Event.CUSTOM_COUNTRY_ENTRIES[0])
159160
countries._countries.append(Event.CUSTOM_COUNTRY_ENTRIES[1])
160161

162+
# XK is temp code for Kosovo; remove from COUNTRIES_OVERRIDE when
163+
# Kosovo gets its own ISO code and is added to django-countries
164+
#if not 'Kosovo' in list(dict(countries._countries).values()):
165+
# countries._countries.append((u'XK', u'Kosovo'))
166+
161167
search = forms.CharField(
162168
required=False,
163169
widget=forms.TextInput(attrs={'placeholder': 'Search for event name or tag', 'class': 'form-control'})

0 commit comments

Comments
 (0)