X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73ce961f14509aabfa26536f847afd28111029c6..c7c0b88f1f628f0498c8c53c76a061ec128a228a:/wolnelektury/translation.py?ds=sidebyside diff --git a/wolnelektury/translation.py b/wolnelektury/translation.py index cda9ebb81..dad3638fa 100644 --- a/wolnelektury/translation.py +++ b/wolnelektury/translation.py @@ -4,10 +4,15 @@ # from modeltranslation.translator import translator, TranslationOptions +from catalogue.models import Tag from infopages.models import InfoPage class InfoPageTranslationOptions(TranslationOptions): fields = ('title', 'left_column', 'right_column') +class TagTranslationOptions(TranslationOptions): + fields = ('name', 'description') + translator.register(InfoPage, InfoPageTranslationOptions) +translator.register(Tag, TagTranslationOptions)