mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
49ed17db56
commit
ca9d6e6e25
@ -82,22 +82,15 @@ LOGGING = {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.StreamHandler',
|
||||
},
|
||||
'debug_file': {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.FileHandler',
|
||||
'filename': os.path.join(BASE_DIR, 'debug.log'),
|
||||
#'maxBytes': 1024*1024*15, # 15MB
|
||||
#'backupCount': 10,
|
||||
},
|
||||
},
|
||||
|
||||
'loggers': {
|
||||
'ddjango.db.backends': {
|
||||
'level': 'DEBUG',
|
||||
'handlers': ['debug_file', 'console',],
|
||||
'propagate': True
|
||||
},
|
||||
},
|
||||
# 'loggers': {
|
||||
# 'ddjango.db.backends': {
|
||||
# 'level': 'DEBUG',
|
||||
# 'handlers': ['console',],
|
||||
# 'propagate': True
|
||||
# },
|
||||
# },
|
||||
}
|
||||
|
||||
|
||||
|
@ -632,7 +632,6 @@ class Part(models.Model):
|
||||
|
||||
return (min_price, max_price)
|
||||
|
||||
|
||||
def get_bom_price_range(self, quantity=1):
|
||||
""" Return the price range of the BOM for this part.
|
||||
Adds the minimum price for all components in the BOM.
|
||||
@ -690,7 +689,7 @@ class Part(models.Model):
|
||||
return (
|
||||
min(buy_price_range[0], bom_price_range[0]),
|
||||
max(buy_price_range[1], bom_price_range[1])
|
||||
)
|
||||
)
|
||||
|
||||
def deepCopy(self, other, **kwargs):
|
||||
""" Duplicates non-field data from another part.
|
||||
|
Loading…
Reference in New Issue
Block a user