Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed build_documentation to display the correct import statement

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b99d74f71030bc67618718123fadd729413d6a17 1 parent 746ab9e
adrian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_website/apps/docs/parts/build_documentation.py
View
4 django_website/apps/docs/parts/build_documentation.py
@@ -29,8 +29,8 @@
<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>.
-<pre class="literal-block">&gt;&gt;&gt; from django.models.examplemodel import {% for model in models %}{{ model.module_name }}{% if not forloop.last %}, {% endif %}{% endfor %}
+been saved in a file <tt class="docutils literal"><span class="pre">mysite/models.py</span></tt>.
+<pre class="literal-block">&gt;&gt;&gt; from mysite.models import {% for model in models %}{{ model.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
{{ api_usage }}</pre>
</div>
"""
Please sign in to comment.
Something went wrong with that request. Please try again.