Ticket #9908: app_index_r9814.diff

File app_index_r9814.diff, 1.1 KB (added by arne, 16 years ago)

Merged both patches and updated to r9814

  • docs/ref/contrib/admin.txt

     
    10711071Not every template in ``contrib\admin\templates\admin`` may be overridden per
    10721072app or per model. The following can:
    10731073
     1074    * ``app_index.html``
    10741075    * ``change_form.html``
    10751076    * ``change_list.html``
    10761077    * ``delete_confirmation.html``
  • django/contrib/admin/sites.py

     
    390390            'root_path': self.root_path,
    391391        }
    392392        context.update(extra_context or {})
    393         return render_to_response(self.app_index_template or 'admin/app_index.html', context,
     393        return render_to_response(self.app_index_template or ('admin/%s/app_index.html' % app_label,
     394            'admin/app_index.html'), context,
    394395            context_instance=template.RequestContext(request)
    395396        )
    396397       
Back to Top