Make tags translatable
from modeltranslation.translator import translator, TranslationOptions
+from taggit.models import Tag
+
from .models import Partner
# See https://django-modeltranslation.readthedocs.io/en/latest/registration.html
@@ -6,3 +8,10 @@ class PartnerTranslationOptions(TranslationOptions):
fields = ('description',)
translator.register(Partner, PartnerTranslationOptions)
+
+
+
+class TagTranslationTranslations(TranslationOptions):
+ fields = ('name',)
+
+translator.register(Tag, TagTranslationTranslations)
