From: Radek Czajka Date: Thu, 20 Aug 2020 09:14:57 +0000 (+0200) Subject: Forgotten file. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/536566a42958cc1f0dc797a4f892836e6fddf66f?hp=64d26c022dc182339b33c3cd8e4ef1978b150573 Forgotten file. --- diff --git a/src/newsletter/translation.py b/src/newsletter/translation.py new file mode 100644 index 000000000..4e4d5d4ed --- /dev/null +++ b/src/newsletter/translation.py @@ -0,0 +1,13 @@ +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# + +from modeltranslation.translator import translator, TranslationOptions +from . import models + + +class NewsletterTranslationOptions(TranslationOptions): + fields = ['page_title'] + + +translator.register(models.Newsletter, NewsletterTranslationOptions)