Ticket #1252: doc.py.diff
File doc.py.diff, 969 bytes (added by , 19 years ago) |
---|
-
doc.py
137 137 if not utils.docutils_is_available: 138 138 return missing_docutils_page(request) 139 139 140 m odels= []140 m = [] 141 141 for app in models.get_installed_model_modules(): 142 142 for model in app._MODELS: 143 143 opts = model._meta 144 m odels.append({144 m.append({ 145 145 'name': '%s.%s' % (opts.app_label, opts.module_name), 146 146 'module': opts.app_label, 147 147 'class': opts.module_name, 148 148 }) 149 return render_to_response('admin_doc/model_index', {'models': m odels}, context_instance=RequestContext(request))149 return render_to_response('admin_doc/model_index', {'models': m}, context_instance=RequestContext(request)) 150 150 model_index = staff_member_required(model_index) 151 151 152 152 def model_detail(request, model):