X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..a9b45b86d91d95987e15f5113695d7c27e6d66a2:/src/chunks/translation.py?ds=inline 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)