Exemplo n.º 1
0
 def fetch_contactleaves(self, contact_id):
     query = ContactLeave.all()
     query.filter("contact_id =", contact_id)
     query.order("-leave_startdate")
     return query.fetch()
Exemplo n.º 2
0
 def delete_contactleaves(self, contact_id, modifier_id):
     query = ContactLeave.all()
     query.filter("contact_id =", contact_id)
     return query.delete(modifier_id)