Update apps.py

This commit is contained in:
Matthias Mair authored and GitHub committed 2022-05-20 08:31:21 +02:00
1 parent c98cae8c1f
commit 63c64f9dff
1 file changed
+1 -2
+1 -2
View File
@@ -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')