Exemplo n.º 1
0
 def get_preference(self, id):
     """ Get a worker's preference for a given week"""
     return Preference.get(parent=self, id=id)
Exemplo n.º 2
0
 def create_preference(self, **kwargs):
     return Preference.create(parent=self, **kwargs)
Exemplo n.º 3
0
 def get_preferences(self, **kwargs):
     return Preference.get_all(parent=self, **kwargs)