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

Add Belarus and Ukraine, preparing to add Kosovo #322

Merged
merged 2 commits into from
Sep 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions codeweekeu/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@
u'BT': None,
u'BV': None,
u'BW': None,
u'BY': None,
u'BZ': None,
u'CA': None,
u'CC': None,
Expand Down Expand Up @@ -466,7 +465,6 @@
u'TV': None,
u'TW': None,
u'TZ': None,
u'UA': None,
u'UG': None,
u'UM': None,
u'US': None,
Expand Down
Binary file added static/flags/by.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/flags/tr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/flags/ua.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/flags/xk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions web/forms/event_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class AddEventForm(forms.ModelForm):

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

# XK is temp code for Kosovo; remove from COUNTRIES_OVERRIDE when
# Kosovo gets its own ISO code and is added to django-countries
#if not 'Kosovo' in list(dict(countries._countries).values()):
# countries._countries.append((u'XK', u'Kosovo'))

search = forms.CharField(
required=False,
widget=forms.TextInput(attrs={'placeholder': 'Search for event name or tag', 'class': 'form-control'})
Expand Down