X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/066ffa84ce4d577668b1a49140fb7facc19451c3..7f95f426fe9d582ee5b33e73edc7ef7c78a82c12:/wolnelektury/translation.py?ds=inline 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)