From 0e0ebe925128fec0a81c1a6a18f6aa760a30e288 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 11 Jan 2018 12:38:44 -0600 Subject: [PATCH] Fix some mobile view URLs --- tailbone/views/inventory.py | 2 +- tailbone/views/purchasing/receiving.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/views/inventory.py b/tailbone/views/inventory.py index 28f5640b..5b8b4762 100644 --- a/tailbone/views/inventory.py +++ b/tailbone/views/inventory.py @@ -254,7 +254,7 @@ class InventoryBatchView(BatchMasterView): self.handler.add_row(batch, row) self.Session.flush() - return self.redirect(self.mobile_row_route_url('view', uuid=row.uuid)) + return self.redirect(self.mobile_row_route_url('view', uuid=row.batch_uuid, row_uuid=row.uuid)) def template_kwargs_view_row(self, **kwargs): row = kwargs['instance'] diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 38fa60ba..895f90cd 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -258,7 +258,7 @@ class ReceivingBatchView(PurchasingBatchView): self.handler.refresh_batch_status(batch) self.Session.flush() - return self.redirect(self.mobile_row_route_url('view', uuid=row.uuid)) + return self.redirect(self.mobile_row_route_url('view', uuid=row.batch_uuid, row_uuid=row.uuid)) def mobile_view_row(self): """