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:
Luke Plant 2006-02-07 23:19:33 +00:00
parent b19eef14ed
commit 61caa88613
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def get_models(app_mod=None):
returns a list of all installed models. returns a list of all installed models.
""" """
if app_mod: if app_mod:
return _app_models.get(app_mod.__name__.split('.')[-2], ()).values() return _app_models.get(app_mod.__name__.split('.')[-2], {}).values()
else: else:
model_list = [] model_list = []
for app_mod in get_apps(): for app_mod in get_apps():