fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[wolnelektury.git]
/
src
/
catalogue
/
translation.py
diff --git
a/src/catalogue/translation.py
b/src/catalogue/translation.py
index
3197365
..
aec44bc
100644
(file)
--- a/
src/catalogue/translation.py
+++ b/
src/catalogue/translation.py
@@
-1,4
+1,3
@@
-# -*- coding: utf-8 -*-
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
@@
-6,12
+5,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',)