From 1cfe4458977e0f71a55187f4606f0fcce53e0231 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 19 May 2020 16:59:21 +1000 Subject: [PATCH] PEP fix --- InvenTree/stock/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index e4a9e9ae52..9caf9f568b 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -1112,7 +1112,7 @@ class StockItemTestResult(models.Model): super().clean() - # If this test result corresponds to a template, check the requirements of the template + # If this test result corresponds to a template, check the requirements of the template key = helpers.generateTestKey(self.test) templates = self.stock_item.part.getTestTemplates() @@ -1134,7 +1134,7 @@ class StockItemTestResult(models.Model): "attachment": _("Attachment must be uploaded for this test"), }) """ - + break # If an attachment is linked to this result, the attachment must also point to the item