1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

newforms-admin: Merged changes from trunk up to [6863].

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans
2007-12-03 17:37:33 +00:00
parent 22aa9db4a2
commit c68f751f8c
96 changed files with 3135 additions and 1212 deletions

View File

@@ -18,26 +18,26 @@ class Bar(models.Model):
return "Bar %s" % self.place.name
class Whiz(models.Model):
name = models.CharField(max_length = 50)
name = models.CharField(max_length=50)
def __unicode__(self):
return "Whiz %s" % self.name
class Child(models.Model):
parent = models.OneToOneField('Base')
name = models.CharField(max_length = 50)
name = models.CharField(max_length=50)
def __unicode__(self):
return "Child %s" % self.name
class Base(models.Model):
name = models.CharField(max_length = 50)
name = models.CharField(max_length=50)
def __unicode__(self):
return "Base %s" % self.name
class Article(models.Model):
name = models.CharField(maxlength = 50)
name = models.CharField(max_length=50)
text = models.TextField()
def __str__(self):