X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..905f7fa0606b3218402df703ffac8bf6f825dde1:/src/catalogue/translation.py?ds=inline 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',)