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', 'level': 'DEBUG',
'class': 'logging.StreamHandler', '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': { # 'loggers': {
'ddjango.db.backends': { # 'ddjango.db.backends': {
'level': 'DEBUG', # 'level': 'DEBUG',
'handlers': ['debug_file', 'console',], # 'handlers': ['console',],
'propagate': True # 'propagate': True
}, # },
}, # },
} }

View File

@ -632,7 +632,6 @@ class Part(models.Model):
return (min_price, max_price) return (min_price, max_price)
def get_bom_price_range(self, quantity=1): def get_bom_price_range(self, quantity=1):
""" Return the price range of the BOM for this part. """ Return the price range of the BOM for this part.
Adds the minimum price for all components in the BOM. Adds the minimum price for all components in the BOM.