commit
4468af1594
2 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@ def gen_sqlalchemy_metadata(peewee_model_list):
|
|||
all_indexes = set(meta.indexes)
|
||||
|
||||
columns = []
|
||||
for field in meta.get_fields():
|
||||
for field in meta.sorted_fields:
|
||||
alchemy_type = None
|
||||
col_args = []
|
||||
col_kwargs = {}
|
||||
|
|
|
@ -37,8 +37,9 @@ def get_storage_providers(config):
|
|||
|
||||
try:
|
||||
for name, parameters in storage_config.items():
|
||||
drivers[name] = (parameters[0], get_storage_driver(parameters))
|
||||
drivers[name] = (parameters[0], get_storage_driver(None, parameters))
|
||||
except TypeError:
|
||||
logger.exception('Missing required storage configuration provider')
|
||||
raise Exception('Missing required storage configuration parameter(s): %s' % name)
|
||||
|
||||
return drivers
|
||||
|
|
Reference in a new issue