fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow author creation by api.
[wolnelektury.git]
/
src
/
chunks
/
translation.py
diff --git
a/src/chunks/translation.py
b/src/chunks/translation.py
index
4338699
..
64bba5d
100644
(file)
--- a/
src/chunks/translation.py
+++ b/
src/chunks/translation.py
@@
-3,10
+3,16
@@
#
from modeltranslation.translator import translator, TranslationOptions
#
from modeltranslation.translator import translator, TranslationOptions
-from chunks.models import Chunk
+from chunks.models import Chunk
, MenuItem
class ChunkTranslationOptions(TranslationOptions):
fields = ('content',)
translator.register(Chunk, ChunkTranslationOptions)
class ChunkTranslationOptions(TranslationOptions):
fields = ('content',)
translator.register(Chunk, ChunkTranslationOptions)
+
+
+class MenuItemTranslationOptions(TranslationOptions):
+ fields = ('name',)
+
+translator.register(MenuItem, MenuItemTranslationOptions)