mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #13165 -- Added edit and delete links to admin foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
This commit is contained in:
committed by
Tim Graham
parent
48ad288679
commit
07988744b3
@@ -53,6 +53,7 @@ callable_year.admin_order_field = 'date'
|
||||
|
||||
class ArticleInline(admin.TabularInline):
|
||||
model = Article
|
||||
fk_name = 'section'
|
||||
prepopulated_fields = {
|
||||
'title': ('content',)
|
||||
}
|
||||
@@ -93,7 +94,7 @@ class ArticleAdmin(admin.ModelAdmin):
|
||||
}),
|
||||
('Some other fields', {
|
||||
'classes': ('wide',),
|
||||
'fields': ('date', 'section')
|
||||
'fields': ('date', 'section', 'sub_section')
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user