mirror of
https://github.com/django/django.git
synced 2025-09-13 05:57:52 +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:
parent
b22a4fdc71
commit
09a01435de
4 changed files with 55 additions and 5 deletions
|
@ -101,6 +101,14 @@ class NovelAdmin(admin.ModelAdmin):
|
|||
inlines = [ChapterInline]
|
||||
|
||||
|
||||
class ConsigliereInline(admin.TabularInline):
|
||||
model = Consigliere
|
||||
|
||||
|
||||
class SottoCapoInline(admin.TabularInline):
|
||||
model = SottoCapo
|
||||
|
||||
|
||||
site.register(TitleCollection, inlines=[TitleInline])
|
||||
# Test bug #12561 and #12778
|
||||
# only ModelAdmin media
|
||||
|
@ -115,3 +123,4 @@ site.register(Novel, NovelAdmin)
|
|||
site.register(Fashionista, inlines=[InlineWeakness])
|
||||
site.register(Holder4, Holder4Admin)
|
||||
site.register(Author, AuthorAdmin)
|
||||
site.register(CapoFamiglia, inlines=[ConsigliereInline, SottoCapoInline])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue