summaryrefslogtreecommitdiff
path: root/docs/intro
diff options
context:
space:
mode:
Diffstat (limited to 'docs/intro')
-rw-r--r--docs/intro/tutorial04.txt3
-rw-r--r--docs/intro/tutorial07.txt3
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt
index 13a76188bb..65dc132a94 100644
--- a/docs/intro/tutorial04.txt
+++ b/docs/intro/tutorial04.txt
@@ -309,7 +309,8 @@ views and use Django's generic views instead. To do so, open the
def vote(request, question_id):
- ... # same as above, no changes needed.
+ # same as above, no changes needed.
+ ...
Each generic view needs to know what model it will be acting upon. This is
provided using either the ``model`` attribute (in this example, ``model =
diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt
index 9cdadbe286..8cb5dd5d5a 100644
--- a/docs/intro/tutorial07.txt
+++ b/docs/intro/tutorial07.txt
@@ -174,8 +174,7 @@ tabular way of displaying inline related objects. To use it, change the
.. code-block:: python
:caption: ``polls/admin.py``
- class ChoiceInline(admin.TabularInline):
- ...
+ class ChoiceInline(admin.TabularInline): ...
With that ``TabularInline`` (instead of ``StackedInline``), the
related objects are displayed in a more compact, table-based format: