Code layout change.
[wolnelektury.git] / src / chunks / translation.py
diff --git a/src/chunks/translation.py b/src/chunks/translation.py
new file mode 100644 (file)
index 0000000..46f1c7a
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- 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.
+#
+
+from modeltranslation.translator import translator, TranslationOptions
+from chunks.models import Chunk
+
+class ChunkTranslationOptions(TranslationOptions):
+    fields = ('content',)
+
+translator.register(Chunk, ChunkTranslationOptions)