From 0084147c4bce4472b3f2ae321a7757fe2b7f1d27 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 4 Jul 2007 06:50:23 +0000 Subject: [PATCH] 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 --- tests/modeltests/str/models.py | 2 ++ 1 file changed, 2 insertions(+) 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):