diff options
| author | Jeremy Dunck <jdunck@gmail.com> | 2014-03-09 14:07:39 -0700 |
|---|---|---|
| committer | Jeremy Dunck <jdunck@gmail.com> | 2014-03-09 14:07:39 -0700 |
| commit | 0e52b2863bb3286d5958c9f1289db47151261f90 (patch) | |
| tree | 3dab29177392257aff9cf8bf277828bc77f94cbc /docs/intro/tutorial05.txt | |
| parent | 3315535ae899624688cc121db9c29f9a8ae51f9c (diff) | |
Substituted 'shortcut function' for 'factory method' in tutorial
Many newbies don't know what a factory method is, nor is it pertinent to the
information the tutorial hopes to convey.
Diffstat (limited to 'docs/intro/tutorial05.txt')
| -rw-r--r-- | docs/intro/tutorial05.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index a51eb3c484..5f879c56a9 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -451,7 +451,7 @@ Add the following to ``polls/tests.py``: from django.core.urlresolvers import reverse -and we'll create a factory method to create questions as well as a new test +and we'll create a shortcut function to create questions as well as a new test class: .. snippet:: @@ -529,7 +529,7 @@ class: Let's look at some of these more closely. -First is a question factory method, ``create_question``, to take some +First is a question shortcut function, ``create_question``, to take some repetition out of the process of creating questions. ``test_index_view_with_no_questions`` doesn't create any questions, but checks |
