Browse files

Fixed #4870 -- Removed unneeded import and fixed a docstring in an ex…


Thanks, Collin Grady.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a9a04ca commit f9d27b5d0be082d5a67404512067858530ec9e80 @malcolmt malcolmt committed Jul 14, 2007
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/modeltests/str/
@@ -8,14 +8,13 @@
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)

0 comments on commit f9d27b5

Please sign in to comment.