mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user