1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #14938 - Fixed save-as-new on inline formset with new forms.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer
2011-01-25 04:52:54 +00:00
parent 28d0a0f788
commit da771cc74c
3 changed files with 44 additions and 5 deletions

View File

@@ -17,3 +17,13 @@ class Restaurant(Place):
class Manager(models.Model):
retaurant = models.ForeignKey(Restaurant)
name = models.CharField(max_length=50)
class Network(models.Model):
name = models.CharField(max_length=15)
class Host(models.Model):
network = models.ForeignKey(Network)
hostname = models.CharField(max_length=25)
def __unicode__(self):
return self.hostname