1
0
mirror of https://github.com/django/django.git synced 2025-07-03 17:29:12 +00:00

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
This commit is contained in:
Malcolm Tredinnick 2007-07-04 06:50:23 +00:00
parent 9b89357747
commit 0084147c4b

View File

@ -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):