'foreign_id': synonym(foreign_key_name),
'local_language': relationship(language_class,
primaryjoin=table.c.local_language_id == language_class.id,
- innerjoin=True),
+ innerjoin=True,
+ lazy='joined'),
})
# Add full-table relations to the original class
@default_language.setter
def default_language(self, new):
self.registry().default_language = new
-
- def remove(self):
- del self.registry().default_language
- super(MultilangScopedSession, self).remove()