Пример #1
0
 def __before__(self, **kwargs):
     c.proposal_types = ProposalType.find_all()
     c.target_audiences = TargetAudience.find_all()
     c.accommodation_assistance_types = AccommodationAssistanceType.find_all()
     c.travel_assistance_types = TravelAssistanceType.find_all()
Пример #2
0
 def _to_python(self, value, state):
     return AccommodationAssistanceType.find_by_id(value)
Пример #3
0
 def __before__(self, **kwargs):
     c.proposal_types = ProposalType.find_all()
     c.target_audiences = TargetAudience.find_all()
     c.accommodation_assistance_types = AccommodationAssistanceType.find_all(
     )
     c.travel_assistance_types = TravelAssistanceType.find_all()
Пример #4
0
 def _to_python(self, value, state):
     return AccommodationAssistanceType.find_by_id(value)