X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..84a3f7f335bf15b4671cc56c26d243bf539a9536:/src/chunks/translation.py?ds=sidebyside diff --git a/src/chunks/translation.py b/src/chunks/translation.py index 4338699ae..64bba5dd7 100644 --- a/src/chunks/translation.py +++ b/src/chunks/translation.py @@ -3,10 +3,16 @@ # 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 MenuItemTranslationOptions(TranslationOptions): + fields = ('name',) + +translator.register(MenuItem, MenuItemTranslationOptions)