From fe94847e2caf7ba0451b1dfba2d60ff0e164209a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 3 Feb 2006 17:23:24 +0000 Subject: [PATCH] magic-removal: Updated one_to_one unit tests to use self.restaurant instead of self.get_restaurant(), etc. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2241 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/one_to_one/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modeltests/one_to_one/models.py b/tests/modeltests/one_to_one/models.py index 875e6043cf..b678ae31ec 100644 --- a/tests/modeltests/one_to_one/models.py +++ b/tests/modeltests/one_to_one/models.py @@ -21,14 +21,14 @@ class Restaurant(models.Model): serves_pizza = models.BooleanField() def __repr__(self): - return "%s the restaurant" % self.get_place().name + return "%s the restaurant" % self.place.name class Waiter(models.Model): restaurant = models.ForeignKey(Restaurant) name = models.CharField(maxlength=50) def __repr__(self): - return "%s the waiter at %r" % (self.name, self.get_restaurant()) + return "%s the waiter at %r" % (self.name, self.restaurant) API_TESTS = """ # Create a couple of Places.