Fixed a broken test from r16656.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2011-08-23 06:28:45 +00:00
parent 6feb611c7b
commit a86dde20f0
1 changed files with 4 additions and 4 deletions

View File

@ -319,13 +319,13 @@ class ObjectC(models.Model):
return self.name
class SimpleCategory(models.Model):
name = models.CharField(max_length=10)
name = models.CharField(max_length=15)
def __unicode__(self):
return self.name
class SpecialCategory(SimpleCategory):
special_name = models.CharField(max_length=10)
special_name = models.CharField(max_length=15)
def __unicode__(self):
return self.name + " " + self.special_name
@ -337,7 +337,7 @@ class CategoryItem(models.Model):
return "category item: " + str(self.category)
class OneToOneCategory(models.Model):
new_name = models.CharField(max_length=10)
new_name = models.CharField(max_length=15)
category = models.OneToOneField(SimpleCategory)
def __unicode__(self):