From c090ea97c1a199af13c23e83883fbb18598b49fe Mon Sep 17 00:00:00 2001 From: Demur Nodia Date: Mon, 30 Jul 2018 16:03:52 -0400 Subject: [PATCH] Fixed nonexistent field reference in test model __str__() method. --- tests/model_formsets/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/model_formsets/models.py b/tests/model_formsets/models.py index 744a7f60194..92a07e010fc 100644 --- a/tests/model_formsets/models.py +++ b/tests/model_formsets/models.py @@ -123,9 +123,6 @@ class OwnerProfile(models.Model): class Restaurant(Place): serves_pizza = models.BooleanField(default=False) - def __str__(self): - return self.name - class Product(models.Model): slug = models.SlugField(unique=True) @@ -223,7 +220,7 @@ class Post(models.Model): posted = models.DateField() def __str__(self): - return self.name + return self.title # Models for testing UUID primary keys