2006-05-02 09:31:56 +08:00
|
|
|
{% extends "admin/base_site.html" %}
|
2005-12-01 14:52:16 +08:00
|
|
|
{% load i18n %}
|
2005-07-29 23:25:31 +08:00
|
|
|
{% block coltype %}colSM{% endblock %}
|
|
|
|
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> › <a href="../">Documentation</a> › Models</div>{% endblock %}
|
2005-07-16 11:46:17 +08:00
|
|
|
|
|
|
|
{% block title %}Models{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2006-05-02 09:31:56 +08:00
|
|
|
<h1>Model documentation</h1>
|
|
|
|
|
|
|
|
{% regroup models by app_label as grouped_models %}
|
2005-07-29 23:25:31 +08:00
|
|
|
|
2005-07-16 11:46:17 +08:00
|
|
|
<div id="content-main">
|
2005-07-29 23:25:31 +08:00
|
|
|
{% for group in grouped_models %}
|
2005-07-16 11:46:17 +08:00
|
|
|
<div class="module">
|
2009-04-02 05:33:22 +08:00
|
|
|
<h2 id="app-{{ group.grouper }}">{{ group.grouper|capfirst }}</h2>
|
2005-07-16 11:46:17 +08:00
|
|
|
|
|
|
|
<table class="xfull">
|
|
|
|
{% for model in group.list %}
|
2005-07-29 23:25:31 +08:00
|
|
|
<tr>
|
2006-05-02 09:31:56 +08:00
|
|
|
<th><a href="{{ model.app_label }}.{{ model.object_name.lower }}/">{{ model.object_name }}</a></th>
|
2005-07-16 11:46:17 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2005-07-29 23:25:31 +08:00
|
|
|
|
2005-07-16 11:46:17 +08:00
|
|
|
</div>
|
2005-07-29 23:25:31 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block sidebar %}
|
|
|
|
<div id="content-related" class="sidebar">
|
|
|
|
<div class="module">
|
2006-05-02 09:31:56 +08:00
|
|
|
<h2>Model groups</h2>
|
2005-07-29 23:25:31 +08:00
|
|
|
<ul>
|
2006-05-02 09:31:56 +08:00
|
|
|
{% regroup models by app_label as grouped_models %}
|
2005-07-29 23:25:31 +08:00
|
|
|
{% for group in grouped_models %}
|
2009-06-24 22:03:10 +08:00
|
|
|
<li><a href="#app-{{ group.grouper }}">{{ group.grouper|capfirst }}</a></li>
|
2005-07-29 23:25:31 +08:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2005-07-16 11:46:17 +08:00
|
|
|
{% endblock %}
|