Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed test failures introduced in e16c48e.

  • Loading branch information...
commit bc35b95274e0c98c09cf5db5407c0d43f2a1d362 1 parent e12aad2
Aymeric Augustin aaugustin authored
6 tests/admin_views/models.py
View
@@ -184,7 +184,7 @@ class Person(models.Model):
name = models.CharField(max_length=100)
gender = models.IntegerField(choices=GENDER_CHOICES)
age = models.IntegerField(default=21)
- alive = models.BooleanField()
+ alive = models.BooleanField(default=True)
def __str__(self):
return self.name
@@ -196,7 +196,7 @@ class Persona(models.Model):
A simple persona associated with accounts, to test inlining of related
accounts which inherit from a common accounts class.
"""
- name = models.CharField(blank=False, max_length=80)
+ name = models.CharField(blank=False, max_length=80)
def __str__(self):
return self.name
@@ -207,7 +207,7 @@ class Account(models.Model):
A simple, generic account encapsulating the information shared by all
types of accounts.
"""
- username = models.CharField(blank=False, max_length=80)
+ username = models.CharField(blank=False, max_length=80)
persona = models.ForeignKey(Persona, related_name="accounts")
servicename = 'generic service'
4 tests/one_to_one_regress/models.py
View
@@ -24,14 +24,14 @@ def __str__(self):
@python_2_unicode_compatible
class Bar(models.Model):
place = models.OneToOneField(Place)
- serves_cocktails = models.BooleanField()
+ serves_cocktails = models.BooleanField(default=True)
def __str__(self):
return "%s the bar" % self.place.name
class UndergroundBar(models.Model):
place = models.OneToOneField(Place, null=True)
- serves_cocktails = models.BooleanField()
+ serves_cocktails = models.BooleanField(default=True)
@python_2_unicode_compatible
class Favorites(models.Model):
Please sign in to comment.
Something went wrong with that request. Please try again.