mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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…
x
Reference in New Issue
Block a user