X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/891b9e3b7ecaedc9ac32bc941400a267c77482a0..1c07de888eadc1333264d627ffdff1066a5f01b9:/wolnelektury/translation.py 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) +