1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
Jason Myers
2013-11-02 17:50:35 -05:00
parent 8eec2d93b6
commit 3f115776e1
16 changed files with 172 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ class Place(models.Model):
def __str__(self):
return "%s the place" % self.name
@python_2_unicode_compatible
class Restaurant(Place):
serves_sushi = models.BooleanField(default=False)
@@ -26,6 +27,7 @@ class Restaurant(Place):
def __str__(self):
return "%s the restaurant" % self.name
@python_2_unicode_compatible
class Person(models.Model):
name = models.CharField(max_length=50)