mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Update apps.py
This commit is contained in:
		| @@ -46,8 +46,7 @@ class LabelConfig(AppConfig): | |||||||
|         # Test if models are ready |         # Test if models are ready | ||||||
|         try: |         try: | ||||||
|             from .models import StockLocationLabel |             from .models import StockLocationLabel | ||||||
|             obj = StockLocationLabel.objects.first() |             assert bool(StockLocationLabel is not None) | ||||||
|             assert bool(obj is not None) |  | ||||||
|         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') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user