summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-04-30 03:42:53 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-04-30 03:42:53 +0000
commita8572b18a9a2bb2b73950ce078f7c3aae9e8e5af (patch)
tree823ca0531778874d86feb7b83fec70465fbd1dec /docs/db-api.txt
parent5917d90e3027572231d15dba44badfd1d2be9073 (diff)
magic-removal: Replaced __repr__() with __str__() in docs
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 6b2911b3a3..8da6ebbac2 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -15,14 +15,14 @@ a weblog application::
name = models.CharField(maxlength=100)
tagline = models.TextField()
- def __repr__(self):
+ def __str__(self):
return self.name
class Author(models.Model):
name = models.CharField(maxlength=50)
email = models.URLField()
- class __repr__(self):
+ class __str__(self):
return self.name
class Entry(models.Model):
@@ -32,7 +32,7 @@ a weblog application::
pub_date = models.DateTimeField()
authors = models.ManyToManyField(Author)
- def __repr__(self):
+ def __str__(self):
return self.headline
Creating objects