From 63c64f9dff0faac73be3bf3b64bc695bb0ea6b40 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 20 May 2022 08:31:21 +0200 Subject: [PATCH] Update apps.py --- InvenTree/label/apps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/label/apps.py b/InvenTree/label/apps.py index 84ab817422..f2c3c4ada5 100644 --- a/InvenTree/label/apps.py +++ b/InvenTree/label/apps.py @@ -46,8 +46,7 @@ class LabelConfig(AppConfig): # Test if models are ready try: from .models import StockLocationLabel - obj = StockLocationLabel.objects.first() - assert bool(obj is not None) + assert bool(StockLocationLabel is not None) except AppRegistryNotReady: # Database might not yet be ready warnings.warn('Database was not ready for creating labels')