Fix query bugs for batch row grid views.
It worked until we needed to join a table (vendor in this case).
This commit is contained in:
parent
fd74fb041b
commit
e43ceda6bc
|
@ -812,8 +812,8 @@ class BatchRowGrid(BaseGrid):
|
||||||
|
|
||||||
def modify_query(self, q):
|
def modify_query(self, q):
|
||||||
q = super(BatchRowGrid, self).modify_query(q)
|
q = super(BatchRowGrid, self).modify_query(q)
|
||||||
q = q.filter_by(batch=self.current_batch())
|
q = q.filter(self.row_class.batch == self.current_batch())
|
||||||
q = q.filter_by(removed=False)
|
q = q.filter(self.row_class.removed == False)
|
||||||
return q
|
return q
|
||||||
|
|
||||||
def join_map(self):
|
def join_map(self):
|
||||||
|
|
Loading…
Reference in a new issue