Update pycountry code to new 1.19 backwards incompatible changes.

This commit is contained in:
Roberto Rosario
2016-01-22 04:00:30 -04:00
parent b19225e95d
commit fbb22affaa

View File

@@ -9,8 +9,9 @@ from smart_settings import Namespace
# TODO: Findout method to make languages names' translatable.
# YAML fails to serialize ugettext_lazy and ugettext is not allowed at this
# level
LANGUAGE_CHOICES = [
(i.terminology, i.name) for i in list(pycountry.languages)
(i.iso639_3_code, i.name) for i in list(pycountry.languages)
]
namespace = Namespace(name='documents', label=_('Documents'))