fix: fix 'invalid-name' for pylint
This commit is contained in:
parent
019d30d8a0
commit
f989f41e86
13 changed files with 39 additions and 22 deletions
|
@ -127,7 +127,7 @@ class BatchMasterView(MasterView):
|
|||
model = self.app.model
|
||||
|
||||
# created_by
|
||||
CreatedBy = orm.aliased(model.User)
|
||||
CreatedBy = orm.aliased(model.User) # pylint: disable=invalid-name
|
||||
g.set_joiner(
|
||||
"created_by",
|
||||
lambda q: q.join(
|
||||
|
@ -383,8 +383,8 @@ class BatchMasterView(MasterView):
|
|||
if hasattr(cls, "row_model_class"):
|
||||
return cls.row_model_class
|
||||
|
||||
Batch = cls.get_model_class()
|
||||
return Batch.__row_class__
|
||||
model_class = cls.get_model_class()
|
||||
return model_class.__row_class__
|
||||
|
||||
def get_row_grid_data(self, batch):
|
||||
"""
|
||||
|
@ -392,8 +392,10 @@ class BatchMasterView(MasterView):
|
|||
:attr:`~wuttjamaican:wuttjamaican.db.model.batch.BatchMixin.rows`
|
||||
data.
|
||||
"""
|
||||
BatchRow = self.get_row_model_class()
|
||||
query = self.Session.query(BatchRow).filter(BatchRow.batch == batch)
|
||||
row_model_class = self.get_row_model_class()
|
||||
query = self.Session.query(row_model_class).filter(
|
||||
row_model_class.batch == batch
|
||||
)
|
||||
return query
|
||||
|
||||
def configure_row_grid(self, g): # pylint: disable=empty-docstring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue