From c97a2531a098487e5c821ee4783b0bb8a96be0df Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 19 May 2022 01:06:14 +0200 Subject: [PATCH] update check --- InvenTree/label/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/label/tests.py b/InvenTree/label/tests.py index bc493e31b9..5bf7ff3c7c 100644 --- a/InvenTree/label/tests.py +++ b/InvenTree/label/tests.py @@ -11,6 +11,7 @@ from InvenTree.helpers import validateFilterString from InvenTree.api_tester import InvenTreeAPITestCase from .models import StockItemLabel, StockLocationLabel, PartLabel +from part.models import Part from stock.models import StockItem @@ -88,7 +89,7 @@ class LabelTest(InvenTreeAPITestCase): """Test label rendering""" labels = PartLabel.objects.all() - part = PartLabel.objects.first() + part = Part.objects.first() for label in labels: url = reverse('api-part-label-print', kwargs={'pk': label.pk})