mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add __tablename__ to translation tables
This makes it easier to write introspection scripts.
This commit is contained in:
parent
e0beddc573
commit
bbb3ab09e3
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ def create_translation_table(_table_name, foreign_class, relation_name,
|
||||||
Translations = type(_table_name, (object,), {
|
Translations = type(_table_name, (object,), {
|
||||||
'_language_identifier': association_proxy('local_language', 'identifier'),
|
'_language_identifier': association_proxy('local_language', 'identifier'),
|
||||||
'relation_name': relation_name,
|
'relation_name': relation_name,
|
||||||
|
'__tablename__': _table_name,
|
||||||
})
|
})
|
||||||
|
|
||||||
# Create the table object
|
# Create the table object
|
||||||
|
|
Loading…
Reference in a new issue