mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49: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:
parent
9b89357747
commit
0084147c4b
@ -22,6 +22,8 @@ class Article(models.Model):
|
|||||||
pub_date = models.DateTimeField()
|
pub_date = models.DateTimeField()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
# Caution: this is only safe if you are certain that headline will be
|
||||||
|
# in ASCII.
|
||||||
return self.headline
|
return self.headline
|
||||||
|
|
||||||
class InternationalArticle(models.Model):
|
class InternationalArticle(models.Model):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user