summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-14 14:50:35 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-14 14:50:35 +0000
commitf9d27b5d0be082d5a67404512067858530ec9e80 (patch)
tree0b22bdd6ee6fec6917dc07679029dbcd319a915b
parenta9a04ca8f67811f3e59b9ae17ae9d639311bf6e9 (diff)
Fixed #4870 -- Removed unneeded import and fixed a docstring in an example.
Thanks, Collin Grady. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/str/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/modeltests/str/models.py b/tests/modeltests/str/models.py
index b4d3adcd6d..6bd6a7e448 100644
--- a/tests/modeltests/str/models.py
+++ b/tests/modeltests/str/models.py
@@ -8,14 +8,13 @@ representation of the object. Do this not only for your own sanity when dealing
with the interactive prompt, but also because objects' representations are used
throughout Django's automatically-generated admin.
-Normally, you should write ``__unicode__``() method, since this will work for
+Normally, you should write ``__unicode__()`` method, since this will work for
all field types (and Django will automatically provide an appropriate
``__str__()`` method). However, you can write a ``__str__()`` method directly,
if you prefer. You must be careful to encode the results correctly, though.
"""
from django.db import models
-from django.utils.encoding import smart_str
class Article(models.Model):
headline = models.CharField(maxlength=100)