Changed one_to_one unit test to use %r instead of %s in repr method
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b4bb345b94
commit
887ed3ad2c
|
@ -28,7 +28,7 @@ class Waiter(meta.Model):
|
||||||
name = meta.CharField(maxlength=50)
|
name = meta.CharField(maxlength=50)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "%s the waiter at %s" % (self.name, self.get_restaurant())
|
return "%s the waiter at %r" % (self.name, self.get_restaurant())
|
||||||
|
|
||||||
API_TESTS = """
|
API_TESTS = """
|
||||||
# Create a couple of Places.
|
# Create a couple of Places.
|
||||||
|
|
Loading…
Reference in New Issue