Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed 'API reference' section from django_website docs build_docume…

…ntation.py, because it's no longer useful post magic-removal

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 746ab9ec15d54bb0761318f944a17ab647c73fbe 1 parent 9fb3025
adrian authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 django_website/apps/docs/parts/build_documentation.py
View
10 django_website/apps/docs/parts/build_documentation.py
@@ -27,15 +27,6 @@
<h2 id="model-source-code">Model source code</h2>
<pre class="literal-block">{{ model_source }}</pre>
-<h2 id="api-reference">API reference</h2>
-
-{% for model in models %}
-<h3>{{ model.name }} objects have the following methods:</h3>
-<ul>
-{% for method in model.methods %}<li><tt class="docutils literal"><span class="pre">{{ method }}()</span></tt></li>
-{% endfor %}</ul>
-{% endfor %}
-
<h2 id="sample-usage">Sample API usage</h2>
<p>This sample code assumes the above model{{ models|pluralize }} {% if models|pluralize %}have{% else %}has{% endif %}
been saved in a file <tt class="docutils literal"><span class="pre">examplemodel.py</span></tt>.
@@ -122,7 +113,6 @@ def build_test_documents():
models.append({
'name': m._meta.object_name,
'module_name': m._meta.module_name,
- 'methods': [method for method in dir(m) if not method.startswith('_')],
})
# Run this through the template system.
Please sign in to comment.
Something went wrong with that request. Please try again.