X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..527055abe52213eebc02175dd192841966735e18:/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',)