projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a mapped_classes list, and a translation_classes list to each mapped class
[zzz-pokedex.git]
/
pokedex
/
db
/
multilang.py
diff --git
a/pokedex/db/multilang.py
b/pokedex/db/multilang.py
index
f3438dd
..
8e067c6
100644
(file)
--- a/
pokedex/db/multilang.py
+++ b/
pokedex/db/multilang.py
@@
-145,6
+145,9
@@
def create_translation_table(_table_name, foreign_class, relation_name,
setattr(foreign_class, name + '_map',
association_proxy(relation_name, name, creator=creator))
+ # Add to the list of translation classes
+ foreign_class.translation_classes.append(Translations)
+
# Done
return Translations