X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/891b9e3b7ecaedc9ac32bc941400a267c77482a0..8a94a61284f8af5f1b3aa42b2679bf4273d68169:/wolnelektury/translation.py?ds=sidebyside diff --git a/wolnelektury/translation.py b/wolnelektury/translation.py index 227896ee4..3b10a96d1 100644 --- a/wolnelektury/translation.py +++ b/wolnelektury/translation.py @@ -5,7 +5,7 @@ from modeltranslation.translator import translator, TranslationOptions from infopages.models import InfoPage -from catalogue.models import Book +from catalogue.models import Book, Fragment class InfoPageTranslationOptions(TranslationOptions): fields = ('page_title', 'title', 'left_column', 'right_column') @@ -17,3 +17,8 @@ class BookTranslationOptions(TranslationOptions): translator.register(Book, BookTranslationOptions) +class FragmentTranslationOptions(TranslationOptions): + fields = ('_short_html', ) + +translator.register(Fragment, FragmentTranslationOptions) +