mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	- Fixes issues with limitations on old MySQL server
(cherry picked from commit 4569fd273d)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b57d035f7f
						
					
				
				
					commit
					04aec83e95
				
			| @@ -92,7 +92,7 @@ class BarcodeView(CreateAPIView): | ||||
|  | ||||
|             if num_scans > max_scans: | ||||
|                 n = num_scans - max_scans | ||||
|                 old_scan_ids = ( | ||||
|                 old_scan_ids = list( | ||||
|                     BarcodeScanResult.objects.all() | ||||
|                     .order_by('timestamp') | ||||
|                     .values_list('pk', flat=True)[:n] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user