def query(self): remember_navigation_history(self.request, self.context.id) query = DBSESSION().query(distinct(Business.id), Business) query = query.filter_by(project_id=self.current().id) return query
def filter_project(self, query, appstruct): remember_navigation_history(self.request, self.context.id) self.populate_navigation() query = query.filter(Estimation.project_id == self.context.id) return query
def filter_project(self, query, appstruct): remember_navigation_history(self.request, self.context.id) self.populate_navigation() query = query.filter(Task.project_id == self.context.id) return query