2006-05-02 09:31:56 +08:00
|
|
|
{% extends "admin/base_site.html" %}
|
2005-12-01 14:52:16 +08:00
|
|
|
{% load i18n %}
|
2011-09-21 02:30:06 +08:00
|
|
|
|
2005-07-16 11:46:17 +08:00
|
|
|
{% block extrahead %}
|
|
|
|
{{ block.super }}
|
|
|
|
<style type="text/css">
|
|
|
|
.module table { width:100%; }
|
2006-05-18 23:17:42 +08:00
|
|
|
.module table p { padding: 0; margin: 0; }
|
2005-07-16 11:46:17 +08:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2011-09-21 02:30:06 +08:00
|
|
|
{% block breadcrumbs %}
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
|
|
› <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
|
|
|
|
› <a href="{% url 'django-admindocs-models-index' %}">{% trans 'Models' %}</a>
|
|
|
|
› {{ name }}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2005-07-16 11:46:17 +08:00
|
|
|
|
2013-06-01 18:06:36 +08:00
|
|
|
{% block title %}{% blocktrans %}Model: {{ name }}{% endblocktrans %}{% endblock %}
|
2005-07-16 11:46:17 +08:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div id="content-main">
|
2014-11-04 03:16:28 +08:00
|
|
|
<h1>{{ name }}</h1>
|
|
|
|
<h2 class="subhead">{{ summary }}</h2>
|
2005-07-16 11:46:17 +08:00
|
|
|
|
2014-11-04 03:16:28 +08:00
|
|
|
{{ description }}
|
2006-02-28 05:05:50 +08:00
|
|
|
|
2014-10-31 03:45:01 +08:00
|
|
|
<h3>{% trans 'Fields' %}</h3>
|
2005-07-16 11:46:17 +08:00
|
|
|
<div class="module">
|
|
|
|
<table class="model">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2013-06-01 18:06:36 +08:00
|
|
|
<th>{% trans 'Field' %}</th>
|
|
|
|
<th>{% trans 'Type' %}</th>
|
|
|
|
<th>{% trans 'Description' %}</th>
|
2005-07-16 11:46:17 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for field in fields|dictsort:"name" %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ field.name }}</td>
|
|
|
|
<td>{{ field.data_type }}</td>
|
2008-09-08 13:19:28 +08:00
|
|
|
<td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
|
2005-07-16 11:46:17 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2014-10-31 03:45:01 +08:00
|
|
|
{% if methods %}
|
|
|
|
<h3>{% trans 'Methods with arguments' %}</h3>
|
|
|
|
<div class="module">
|
|
|
|
<table class="model">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans 'Method' %}</th>
|
|
|
|
<th>{% trans 'Arguments' %}</th>
|
|
|
|
<th>{% trans 'Description' %}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for method in methods|dictsort:"name" %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ method.name }}</td>
|
|
|
|
<td>{{ method.arguments }}</td>
|
|
|
|
<td>{{ method.verbose }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-11-27 19:33:47 +08:00
|
|
|
<p class="small"><a href="{% url 'django-admindocs-models-index' %}">‹ {% trans 'Back to Model documentation' %}</a></p>
|
2005-07-16 11:46:17 +08:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|