def query(self, model): q = CldfConfig.query(self, model) if model == Parameter: q = q.options(joinedload(Meaning.semantic_field)) if model == Value: q = q.options(joinedload_all(Counterpart.word, Word.unitvalues)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Parameter: q = q.options(joinedload(Meaning.semantic_field)) if model == Value: q = q.options(joinedload_all(Counterpart.word, Word.unitvalues)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Language: q = q.options(joinedload(Variety.family)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Value: q = q.options( joinedload_all(Value.sentence_assocs, ValueSentence.sentence)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Language: q = q.options(joinedload(WalsLanguage.genus)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Value: q = q.options(joinedload_all(Value.sentence_assocs, ValueSentence.sentence)) return q
def query(self, model): q = CldfConfig.query(self, model) if model == Language: q = q.options(joinedload(WalsLanguage.genus)) return q