djangodjango-hvad

django-hvad: display just a few language tabs in admin when editing an object


With django-hvad extension, if I am editing a translatable object in admin I have dozens of languages displayed there. Is it possible to keep just two (czech and english) and remove all the rest?


Solution

  • I have found out it depends on variable settings.LANGUAGES. I solved it by defining the variable in settings.py:

    LANGUAGES = (
        ('cs', 'Czech'),
        ('en', 'English'),
    )