1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-06-04 00:23:51 +00:00
parent 55e453a09c
commit a5b7c29816
28 changed files with 341 additions and 336 deletions

View File

@@ -17,7 +17,7 @@ class Person(models.Model):
favorite_moment = models.DateTimeField()
email = models.EmailField()
def __repr__(self):
def __str__(self):
return self.name
API_TESTS = """