Removed reliance on global rattail.db.Session
class.
This commit is contained in:
parent
18453c0113
commit
7638020aa0
2 changed files with 5 additions and 2 deletions
|
@ -300,7 +300,8 @@ def print_labels(request):
|
|||
class CreateProductsBatch(ProductsGrid):
|
||||
|
||||
def make_batch(self, provider, progress):
|
||||
from rattail.db import Session
|
||||
from rattail.db import get_session_class
|
||||
Session = get_session_class(edbob.config)
|
||||
session = Session()
|
||||
|
||||
self._filter_config = self.filter_config()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue