Beispiel #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()
Beispiel #2
0
 def _to_python(self, value, state):
     return TargetAudience.find_by_id(value)
Beispiel #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()
Beispiel #4
0
 def _to_python(self, value, state):
     return TargetAudience.find_by_id(value)