Last active
June 30, 2019 01:43
-
-
Save dgabriele/75a1a483299a453c94dc4d4eeeec51af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Intent(BizObject): | |
name = String() | |
class BizList(BizList): | |
yearly_financials = BatchRelationship( | |
conditions=lambda intents: ( | |
Intent._id, | |
YearlyFinancial.intent_id, | |
YearlyFinancial.intent_id.including(intents._id) | |
), | |
order_by=lambda: YearlyFinancial.year.asc, | |
many=True | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment