PEP fixes

This commit is contained in:
Oliver Walters 2019-05-21 00:54:48 +10:00
parent 49ed17db56
commit ca9d6e6e25
2 changed files with 8 additions and 16 deletions

View File

@ -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
# },
# },
}

View File

@ -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.