fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
64d26c0
)
Forgotten file.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 20 Aug 2020 09:14:57 +0000
(11:14 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 10 Sep 2020 12:15:11 +0000
(14:15 +0200)
src/newsletter/translation.py
[new file with mode: 0644]
patch
|
blob
diff --git a/src/newsletter/translation.py
b/src/newsletter/translation.py
new file mode 100644
(file)
index 0000000..
4e4d5d4
--- /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)