mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	ignore coverage in exsisting migrations
This commit is contained in:
		@@ -12,7 +12,7 @@ def update_serials(apps, schema_editor):
 | 
			
		||||
 | 
			
		||||
    StockItem = apps.get_model('stock', 'stockitem')
 | 
			
		||||
 | 
			
		||||
    for item in StockItem.objects.all():
 | 
			
		||||
    for item in StockItem.objects.all():  # pragma: no cover
 | 
			
		||||
 | 
			
		||||
        if item.serial is None:
 | 
			
		||||
            # Skip items without existing serial numbers
 | 
			
		||||
@@ -33,7 +33,7 @@ def update_serials(apps, schema_editor):
 | 
			
		||||
        item.save()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def nupdate_serials(apps, schema_editor):
 | 
			
		||||
def nupdate_serials(apps, schema_editor):  # pragma: no cover
 | 
			
		||||
    """
 | 
			
		||||
    Provided only for reverse migration compatibility
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user