Skip to content

Commit

Permalink
Merge pull request #76 from universalcore/feature/issue-75-add-add-Bo…
Browse files Browse the repository at this point in the history
…naire-curaçao-and-republic-of-congo

added Bonaire, Curaçao and Republic of Congo
  • Loading branch information
TREVOR committed Sep 5, 2016
2 parents ed08452 + 04c8558 commit 4b7845e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -17,7 +17,7 @@ develop-eggs
.installed.cfg
lib
lib64

.cache
# Installer logs
pip-log.txt

Expand Down
4 changes: 3 additions & 1 deletion cms/constants.py
Expand Up @@ -469,6 +469,7 @@
"BO": "Bolivia",
"BA": "Bosnia and Herzegovina",
"BW": "Botswana",
"BQ": "Bonaire",
"BV": "Bouvet Island",
"BR": "Brazil",
"IO": "British Indian Ocean Territory",
Expand All @@ -489,13 +490,14 @@
"CC": "Cocos (Keeling) Islands",
"CO": "Colombia",
"KM": "Comoros",
"CG": "Congo",
"CG": "Congo, Republic of",
"CD": "Congo, The Democratic Republic of the",
"CK": "Cook Islands",
"CR": "Costa Rica",
"CI": "Cote D'Ivoire",
"HR": "Croatia",
"CU": "Cuba",
"CW": "Curacao",
"CY": "Cyprus",
"CZ": "Czech Republic",
"DK": "Denmark",
Expand Down
6 changes: 3 additions & 3 deletions cms/models.py
Expand Up @@ -134,9 +134,9 @@ def __unicode__(self): # pragma: no cover
return self.get_license_display()

def clean(self):
if (self.license == CUSTOM_REPO_LICENSE_TYPE
and not all([self.custom_license_text,
self.custom_license_name])):
if (self.license == CUSTOM_REPO_LICENSE_TYPE and
not all([self.custom_license_text,
self.custom_license_name])):
raise ValidationError(
'You must specify a license name & text for a custom license.')

Expand Down
2 changes: 1 addition & 1 deletion cms/tests/test_localisation.py
Expand Up @@ -2,7 +2,6 @@
import mock

from PIL import Image
Image.init()

from django.core.files.images import ImageFile
from django.conf import settings
Expand All @@ -15,6 +14,7 @@

from pycountry import languages

Image.init()
CURRENT_DIR = os.path.abspath(os.path.split(__file__)[0])
IMAGE_DIR = os.path.join(CURRENT_DIR, "images")

Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
@@ -1,5 +1,5 @@
flake8
pytest
pytest-django
flake8==2.5.4
pytest==2.9.2
pytest-django==2.9.1
pytest-cov
pytest-xdist
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -5,7 +5,7 @@ gunicorn
python-memcached
raven==5.0.0
nose
django-nose
django-nose==1.4.2
django-haystack
django-celery
psycopg2
Expand Down

0 comments on commit 4b7845e

Please sign in to comment.