mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-26 10:57:40 +00:00 
			
		
		
		
	PEP fixes
This commit is contained in:
		| @@ -566,9 +566,11 @@ class InvenTreeSetting(models.Model): | ||||
|         """ | ||||
|  | ||||
|         try: | ||||
|             value = int() | ||||
|             value = int(self.value) | ||||
|         except (ValueError, TypeError): | ||||
|             return self.default_value() | ||||
|             value = self.default_value() | ||||
|  | ||||
|         return value | ||||
|          | ||||
|  | ||||
| class PriceBreak(models.Model): | ||||
|   | ||||
| @@ -501,7 +501,6 @@ class StockItem(MPTTModel): | ||||
|  | ||||
|         return self.expiry_date < expiry_date | ||||
|  | ||||
|  | ||||
|     def is_expired(self): | ||||
|         """ | ||||
|         Returns True if this StockItem is "expired". | ||||
|   | ||||
		Reference in New Issue
	
	Block a user