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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user