fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lesmianator in search, django 1.1 compatibility
[wolnelektury.git]
/
wolnelektury
/
translation.py
diff --git
a/wolnelektury/translation.py
b/wolnelektury/translation.py
index
227896e
..
3b10a96
100644
(file)
--- a/
wolnelektury/translation.py
+++ b/
wolnelektury/translation.py
@@
-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)
+