Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ample.

Thanks, Collin Grady.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f9d27b5d0be082d5a67404512067858530ec9e80 1 parent a9a04ca
Malcolm Tredinnick malcolmt authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  tests/modeltests/str/models.py
3  tests/modeltests/str/models.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.