Kaydet (Commit) c090ea97 authored tarafından Demur Nodia's avatar Demur Nodia Kaydeden (comit) Tim Graham

Fixed nonexistent field reference in test model __str__() method.

üst c6238bf0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment