X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/891b9e3b7ecaedc9ac32bc941400a267c77482a0..9e556c1938577b991edfcb0a0248fcca92d67f3e:/wolnelektury/translation.py?ds=inline 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) +