fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
top align in tables
[wolnelektury.git]
/
src
/
catalogue
/
translation.py
diff --git
a/src/catalogue/translation.py
b/src/catalogue/translation.py
index
3197365
..
4946143
100644
(file)
--- a/
src/catalogue/translation.py
+++ b/
src/catalogue/translation.py
@@
-6,12
+6,15
@@
from modeltranslation.translator import translator, TranslationOptions
from catalogue.models import Collection, Tag, Source
from modeltranslation.translator import translator, TranslationOptions
from catalogue.models import Collection, Tag, Source
+
class TagTranslationOptions(TranslationOptions):
fields = ('name', 'description', 'wiki_link')
class TagTranslationOptions(TranslationOptions):
fields = ('name', 'description', 'wiki_link')
+
class CollectionTranslationOptions(TranslationOptions):
fields = ('title', 'description')
class CollectionTranslationOptions(TranslationOptions):
fields = ('title', 'description')
+
class SourceTranslationOptions(TranslationOptions):
fields = ('name',)
class SourceTranslationOptions(TranslationOptions):
fields = ('name',)