Fix tests for py3.
This commit is contained in:
parent
0dda687762
commit
3c0c4c2996
10 changed files with 16 additions and 20 deletions
|
|
@ -62,10 +62,10 @@ BACKENDS = {
|
|||
}
|
||||
|
||||
|
||||
def get_model(name, region):
|
||||
def get_model(name, region_name):
|
||||
for backends in BACKENDS.values():
|
||||
for region, backend in backends.items():
|
||||
if region == region:
|
||||
if region == region_name:
|
||||
models = getattr(backend.__class__, '__models__', {})
|
||||
if name in models:
|
||||
return list(getattr(backend, models[name])())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue