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
+1 -2
View File
@@ -159,8 +159,7 @@ class Document(models.Model):
auto_now_add=True, db_index=True, verbose_name=_('Added')
)
language = models.CharField(
blank=True, choices=setting_language_choices.value,
default=setting_language.value, max_length=8,
blank=True, default=setting_language.value, max_length=8,
verbose_name=_('Language')
)
in_trash = models.BooleanField(