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