X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..53e53be2fd5c6ffd0b96928735944aa75b7b2f2d:/src/catalogue/translation.py?ds=sidebyside diff --git a/src/catalogue/translation.py b/src/catalogue/translation.py index 319736515..4946143db 100644 --- a/src/catalogue/translation.py +++ b/src/catalogue/translation.py @@ -6,12 +6,15 @@ from modeltranslation.translator import translator, TranslationOptions from catalogue.models import Collection, Tag, Source + class TagTranslationOptions(TranslationOptions): fields = ('name', 'description', 'wiki_link') + class CollectionTranslationOptions(TranslationOptions): fields = ('title', 'description') + class SourceTranslationOptions(TranslationOptions): fields = ('name',)