Changeset 5697
- Timestamp:
- 07/14/07 09:50:35 (1 year ago)
- Files:
-
- django/trunk/tests/modeltests/str/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/str/models.py
r5609 r5697 9 9 throughout Django's automatically-generated admin. 10 10 11 Normally, you should write ``__unicode__ ``()method, since this will work for11 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, … … 16 16 17 17 from django.db import models 18 from django.utils.encoding import smart_str19 18 20 19 class Article(models.Model):
