Move the document language choice list from the model to the form.

Pycoutry upgrades or user changes to the language choice list won't
trigger a migration anymore. Closes GitLab issue #328.
This commit is contained in:
Roberto Rosario
2016-12-31 02:20:56 -04:00
parent 6bfdb053e3
commit 4f889fc21d
5 changed files with 41 additions and 13 deletions
-4
View File
@@ -6,10 +6,6 @@ from django.utils.translation import ugettext_lazy as _
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.iso639_3_code, i.name) for i in list(pycountry.languages)
]