diff --git a/rattail/batches/providers/labels.py b/rattail/batches/providers/labels.py index e9cc3462bb78b12a00312482b93fed10741c05a1..28aeaf0163501d7dbfe3576b66ef09a5ccde3df6 100644 --- a/rattail/batches/providers/labels.py +++ b/rattail/batches/providers/labels.py @@ -28,9 +28,8 @@ Print Labels Batch from sqlalchemy.orm import object_session -import rattail +from . import BatchProvider from ...db import model -from rattail.batches.providers import BatchProvider class PrintLabels(BatchProvider): @@ -79,7 +78,7 @@ class PrintLabels(BatchProvider): profiles = {} cancel = False - for i, row in enumerate(batch.iter_rows(), 1): + for i, row in enumerate(batch.rows, 1): profile = profiles.get(row.F95) if not profile: