mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Update apps.py
This commit is contained in:
parent
c98cae8c1f
commit
63c64f9dff
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user