X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/c1ba23b0c45a0873cd27456c0950c7f4f3253fe4..7f96517619e0afd661bd211c6912e6b3cc4ac9f7:/pokedex/db/multilang.py diff --git a/pokedex/db/multilang.py b/pokedex/db/multilang.py index f3438dd..8e067c6 100644 --- 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