make 'some' request

This commit is contained in:
Matthias 2022-05-19 00:25:27 +02:00
parent 734affb983
commit 8dedf95a8d
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -43,8 +43,10 @@ class LabelConfig(AppConfig):
"""
Create all default templates
"""
# Test if models are ready
try:
from .models import StockLocationLabel
obj = StockLocationLabel.objects.first()
except AppRegistryNotReady:
# Database might not yet be ready
warnings.warn('Database was not ready for creating labels')