Django

Code

Changeset 5697

Show
Ignore:
Timestamp:
07/14/07 09:50:35 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4870 -- Removed unneeded import and fixed a docstring in an example.
Thanks, Collin Grady.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/str/models.py

    r5609 r5697  
    99throughout Django's automatically-generated admin. 
    1010 
    11 Normally,  you should write ``__unicode__``() method, since this will work for 
     11Normally,  you should write ``__unicode__()`` method, since this will work for 
    1212all field types (and Django will automatically provide an appropriate 
    1313``__str__()`` method). However, you can write a ``__str__()`` method directly, 
     
    1616 
    1717from django.db import models 
    18 from django.utils.encoding import smart_str 
    1918 
    2019class Article(models.Model):