Permalink
Browse files

magic-removal: Fixed #1252 -- Fixed bug in admin doc views. Thanks, t…

…he.twentysixth

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Jan 21, 2006
1 parent 387f453 commit 882c7c188507134d4778a4632dd4caa9db7459b3
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/admin/views/doc.py
@@ -137,16 +137,16 @@ def model_index(request):
if not utils.docutils_is_available:
return missing_docutils_page(request)
- models = []
+ m_list = []
for app in models.get_installed_model_modules():
for model in app._MODELS:
opts = model._meta
- models.append({
+ m_list.append({
'name': '%s.%s' % (opts.app_label, opts.module_name),
'module': opts.app_label,
'class': opts.module_name,
})
- return render_to_response('admin_doc/model_index', {'models': models}, context_instance=RequestContext(request))
+ return render_to_response('admin_doc/model_index', {'models': m_list}, context_instance=RequestContext(request))
model_index = staff_member_required(model_index)
def model_detail(request, model):

0 comments on commit 882c7c1

Please sign in to comment.