Fixed test failures introduced in e16c48e001
.
This commit is contained in:
parent
e12aad2d57
commit
bc35b95274
|
@ -184,7 +184,7 @@ class Person(models.Model):
|
||||||
name = models.CharField(max_length=100)
|
name = models.CharField(max_length=100)
|
||||||
gender = models.IntegerField(choices=GENDER_CHOICES)
|
gender = models.IntegerField(choices=GENDER_CHOICES)
|
||||||
age = models.IntegerField(default=21)
|
age = models.IntegerField(default=21)
|
||||||
alive = models.BooleanField()
|
alive = models.BooleanField(default=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
|
@ -24,14 +24,14 @@ class Restaurant(models.Model):
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class Bar(models.Model):
|
class Bar(models.Model):
|
||||||
place = models.OneToOneField(Place)
|
place = models.OneToOneField(Place)
|
||||||
serves_cocktails = models.BooleanField()
|
serves_cocktails = models.BooleanField(default=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "%s the bar" % self.place.name
|
return "%s the bar" % self.place.name
|
||||||
|
|
||||||
class UndergroundBar(models.Model):
|
class UndergroundBar(models.Model):
|
||||||
place = models.OneToOneField(Place, null=True)
|
place = models.OneToOneField(Place, null=True)
|
||||||
serves_cocktails = models.BooleanField()
|
serves_cocktails = models.BooleanField(default=True)
|
||||||
|
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class Favorites(models.Model):
|
class Favorites(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue