diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-04 06:50:23 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-04 06:50:23 +0000 |
| commit | 0084147c4bce4472b3f2ae321a7757fe2b7f1d27 (patch) | |
| tree | 6303a2ec470fc130dc71f1c230df3a0dc9b0f41b | |
| parent | 9b89357747c200f19681d50a30a954451a09d27d (diff) | |
unicode: Added a comment to the example in [5602].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/str/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/str/models.py b/tests/modeltests/str/models.py index 7c63ec409d..b4d3adcd6d 100644 --- a/tests/modeltests/str/models.py +++ b/tests/modeltests/str/models.py @@ -22,6 +22,8 @@ class Article(models.Model): pub_date = models.DateTimeField() def __str__(self): + # Caution: this is only safe if you are certain that headline will be + # in ASCII. return self.headline class InternationalArticle(models.Model): |
