mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-11 17:53:00 +00:00
make 'some' request
This commit is contained in:
parent
734affb983
commit
8dedf95a8d
@ -43,8 +43,10 @@ class LabelConfig(AppConfig):
|
|||||||
"""
|
"""
|
||||||
Create all default templates
|
Create all default templates
|
||||||
"""
|
"""
|
||||||
|
# Test if models are ready
|
||||||
try:
|
try:
|
||||||
from .models import StockLocationLabel
|
from .models import StockLocationLabel
|
||||||
|
obj = StockLocationLabel.objects.first()
|
||||||
except AppRegistryNotReady:
|
except AppRegistryNotReady:
|
||||||
# Database might not yet be ready
|
# Database might not yet be ready
|
||||||
warnings.warn('Database was not ready for creating labels')
|
warnings.warn('Database was not ready for creating labels')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user