mirror of https://github.com/django/django.git
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:
parent
6feb611c7b
commit
a86dde20f0
|
@ -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,9 +337,9 @@ 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):
|
||||
return "one2one " + self.new_name
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue