From 536566a42958cc1f0dc797a4f892836e6fddf66f Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 20 Aug 2020 11:14:57 +0200 Subject: [PATCH] Forgotten file. --- src/newsletter/translation.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/newsletter/translation.py 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) -- 2.20.1