diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-19 01:37:25 -0700 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-19 01:37:25 -0700 |
| commit | 33c361ef9d882522aeae549a3a8c8b52ca5cfc5a (patch) | |
| tree | 7c07f1f460ea123af7d9aa29ac6de254b423f9cc /docs/intro/tutorial01.txt | |
| parent | c70ca4879ee33fc4b70ad9a17d74b649f8f75487 (diff) | |
| parent | a4a761ada2286e0f08282efe8dffcd1b384c052c (diff) | |
Merge pull request #1129 from frog32/master
Add needed Imports to the Documentation
Diffstat (limited to 'docs/intro/tutorial01.txt')
| -rw-r--r-- | docs/intro/tutorial01.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index d623bd8451..6e5988b15a 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -582,6 +582,8 @@ of this object. Let's fix that by editing the polls model (in the ``Choice``. On Python 3, simply replace ``__unicode__`` by ``__str__`` in the following example:: + from django.db import models + class Poll(models.Model): # ... def __unicode__(self): # Python 3: def __str__(self): |
