Ticket #1252: doc.py.diff

File doc.py.diff, 969 bytes (added by the.twentysixth@…, 19 years ago)

patch file (b.c. above description does not contain whole thing)

  • doc.py

     
    137137    if not utils.docutils_is_available:
    138138        return missing_docutils_page(request)
    139139
    140     models = []
     140    m = []
    141141    for app in models.get_installed_model_modules():
    142142        for model in app._MODELS:
    143143            opts = model._meta
    144             models.append({
     144            m.append({
    145145                'name': '%s.%s' % (opts.app_label, opts.module_name),
    146146                'module': opts.app_label,
    147147                'class': opts.module_name,
    148148            })
    149     return render_to_response('admin_doc/model_index', {'models': models}, context_instance=RequestContext(request))
     149    return render_to_response('admin_doc/model_index', {'models': m}, context_instance=RequestContext(request))
    150150model_index = staff_member_required(model_index)
    151151
    152152def model_detail(request, model):
Back to Top