mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
1d6a049c5a
commit
e5b346e7fa
@ -566,10 +566,12 @@ 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".
|
||||
|
Loading…
Reference in New Issue
Block a user