magic-removal: Fixed bug in get_models()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b19eef14ed
commit
61caa88613
|
@ -35,7 +35,7 @@ def get_models(app_mod=None):
|
|||
returns a list of all installed models.
|
||||
"""
|
||||
if app_mod:
|
||||
return _app_models.get(app_mod.__name__.split('.')[-2], ()).values()
|
||||
return _app_models.get(app_mod.__name__.split('.')[-2], {}).values()
|
||||
else:
|
||||
model_list = []
|
||||
for app_mod in get_apps():
|
||||
|
|
Loading…
Reference in New Issue