X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/00e0bf75c998b9d9c743d383f1596c91f9a03766..8f47c0412b68c1c8499a08623eea2f58377bbab8:/pokedex/db/__init__.py diff --git a/pokedex/db/__init__.py b/pokedex/db/__init__.py index ae06c1b..99988fb 100644 --- a/pokedex/db/__init__.py +++ b/pokedex/db/__init__.py @@ -48,10 +48,10 @@ def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''): **all_session_args) session = MultilangScopedSession(sm) - # Default to English. Warning, magic constant, blah blah. Trying to fetch - # English here would kinda break on new databases. TODO still not an ideal - # solution, I guess. - session._default_language_id = 9 + # Default to English. Warning, magic constant, messing with internals, + # blah blah. Trying to fetch English here would kinda break on new + # databases. TODO still not an ideal solution, I guess. + session.registry()._default_language_id = 9 return session