Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored July 14, 2007

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  tests/modeltests/str/models.py
3  tests/modeltests/str/models.py
@@ -8,14 +8,13 @@
8 8
 with the interactive prompt, but also because objects' representations are used
9 9
 throughout Django's automatically-generated admin.
10 10
 
11  
-Normally,  you should write ``__unicode__``() method, since this will work for
  11
+Normally,  you should write ``__unicode__()`` method, since this will work for
12 12
 all field types (and Django will automatically provide an appropriate
13 13
 ``__str__()`` method). However, you can write a ``__str__()`` method directly,
14 14
 if you prefer. You must be careful to encode the results correctly, though.
15 15
 """
16 16
 
17 17
 from django.db import models
18  
-from django.utils.encoding import smart_str
19 18
 
20 19
 class Article(models.Model):
21 20
     headline = models.CharField(maxlength=100)

0 notes on commit f9d27b5

Please sign in to comment.
Something went wrong with that request. Please try again.