mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #16838 -- Corrected broken add-another inline JS in admin with related_name="+". Thanks jamesp for report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -122,3 +122,17 @@ class Novel(models.Model):
|
||||
class Chapter(models.Model):
|
||||
novel = models.ForeignKey(Novel)
|
||||
|
||||
|
||||
# Models for #16838
|
||||
class CapoFamiglia(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
class Consigliere(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
capo_famiglia = models.ForeignKey(CapoFamiglia, related_name='+')
|
||||
|
||||
|
||||
class SottoCapo(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
capo_famiglia = models.ForeignKey(CapoFamiglia, related_name='+')
|
||||
|
||||
Reference in New Issue
Block a user