Forgotten file.
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 20 Aug 2020 09:14:57 +0000 (11:14 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 10 Sep 2020 12:15:11 +0000 (14:15 +0200)
src/newsletter/translation.py [new file with mode: 0644]

diff --git a/src/newsletter/translation.py b/src/newsletter/translation.py
new file mode 100644 (file)
index 0000000..4e4d5d4
--- /dev/null
@@ -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)