lesmianator in search, django 1.1 compatibility
[wolnelektury.git] / wolnelektury / translation.py
index 227896e..3b10a96 100644 (file)
@@ -5,7 +5,7 @@
 
 from modeltranslation.translator import translator, TranslationOptions
 from infopages.models import InfoPage
 
 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')
 
 class InfoPageTranslationOptions(TranslationOptions):
     fields = ('page_title', 'title', 'left_column', 'right_column')
@@ -17,3 +17,8 @@ class BookTranslationOptions(TranslationOptions):
 
 translator.register(Book, BookTranslationOptions)
 
 
 translator.register(Book, BookTranslationOptions)
 
+class FragmentTranslationOptions(TranslationOptions):
+    fields = ('_short_html', )
+
+translator.register(Fragment, FragmentTranslationOptions)
+