1. Branko Vukelic
  2. django-i18n-model

Commits

Hajime Yamasaki  committed 92b7f63

Filter out default language from choices in i18n_language field

  • Participants
  • Parent commits c448244
  • Branches master

Comments (0)

Files changed (1)

File i18n_model/models.py

View file
     i18n_language = models.CharField(
         _('language'),
         max_length=10,
-        choices=settings.LANGUAGES,
+        choices=[l for l in settings.LANGUAGES
+                 if l[0] != settings.LANGUAGE_CODE],
     )
 
     @classmethod