summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-24 15:27:27 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-24 15:27:50 +0100
commitbc35b95274e0c98c09cf5db5407c0d43f2a1d362 (patch)
tree6b26c2689e22f189b6988ef9301b001781b32e85 /tests/admin_views
parente12aad2d57f76f8acbc369feb257cea342cc30c8 (diff)
Fixed test failures introduced in e16c48e001.
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py
index 5e25f0d542..1916949f63 100644
--- a/tests/admin_views/models.py
+++ b/tests/admin_views/models.py
@@ -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'