X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..6a41571eecb01fc448e4d5d6a9d3059523988f18:/src/catalogue/translation.py?ds=sidebyside diff --git a/src/catalogue/translation.py b/src/catalogue/translation.py index 319736515..aec44bc07 100644 --- a/src/catalogue/translation.py +++ b/src/catalogue/translation.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -6,12 +5,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',)