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

Commit 83155c7

Browse files
committed
Merge pull request #322 from ialja/master
Add Belarus and Ukraine, preparing to add Kosovo
2 parents e5f3444 + 113432b commit 83155c7

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

codeweekeu/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@
304304
u'BT': None,
305305
u'BV': None,
306306
u'BW': None,
307-
u'BY': None,
308307
u'BZ': None,
309308
u'CA': None,
310309
u'CC': None,
@@ -467,7 +466,6 @@
467466
u'TV': None,
468467
u'TW': None,
469468
u'TZ': None,
470-
u'UA': None,
471469
u'UG': None,
472470
u'UM': None,
473471
u'US': None,

static/flags/by.png

1005 Bytes
Loading

static/flags/tr.png

-4.44 KB
Loading

static/flags/ua.png

225 Bytes
Loading

static/flags/xk.png

2.05 KB
Loading

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)