clime
clime

Reputation: 8885

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?

Upvotes: 1

Views: 448

Answers (1)

clime
clime

Reputation: 8885

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'),
)

Upvotes: 1

Related Questions