Author: mtredinnick
Date: 2007-07-04 01:50:23 -0500 (Wed, 04 Jul 2007)
New Revision: 5603
Modified:
django/branches/unicode/tests/modeltests/str/models.py
Log:
unicode: Added a comment to the example in [5602].
Modified: django/branches/unicode/tests/modeltests/str/models.py
===================================================================
--- django/branches/unicode/tests/modeltests/str/models.py 2007-07-04
06:05:45 UTC (rev 5602)
+++ django/branches/unicode/tests/modeltests/str/models.py 2007-07-04
06:50:23 UTC (rev 5603)
@@ -22,6 +22,8 @@
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):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---