fnp
/
redakcja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
More filters in catalogue.
[redakcja.git]
/
src
/
catalogue
/
translation.py
1
from modeltranslation.translator import register, TranslationOptions
2
from . import models
3
4
5
@register(models.Author)
6
class AuthorTranslationOptions(TranslationOptions):
7
fields = (
8
'first_name',
9
'last_name',
10
'description',
11
)
12
13
14
@register(models.Place)
15
class PlaceTranslationOptions(TranslationOptions):
16
fields = (
17
'name',
18
'locative',
19
)