mirror of https://github.com/django/django.git
Fixed nonexistent field reference in test model __str__() method.
This commit is contained in:
parent
c6238bf02b
commit
c090ea97c1
|
@ -123,9 +123,6 @@ class OwnerProfile(models.Model):
|
||||||
class Restaurant(Place):
|
class Restaurant(Place):
|
||||||
serves_pizza = models.BooleanField(default=False)
|
serves_pizza = models.BooleanField(default=False)
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return self.name
|
|
||||||
|
|
||||||
|
|
||||||
class Product(models.Model):
|
class Product(models.Model):
|
||||||
slug = models.SlugField(unique=True)
|
slug = models.SlugField(unique=True)
|
||||||
|
@ -223,7 +220,7 @@ class Post(models.Model):
|
||||||
posted = models.DateField()
|
posted = models.DateField()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.title
|
||||||
|
|
||||||
|
|
||||||
# Models for testing UUID primary keys
|
# Models for testing UUID primary keys
|
||||||
|
|
Loading…
Reference in New Issue