mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #35464 -- Added test to cover layout of TabularInline fieldsets.
This commit is contained in:
committed by
Sarah Boyce
parent
b5f4d76bc4
commit
65344f0e1e
@@ -106,14 +106,18 @@ class PhotoInlineMixin:
|
||||
model = Photo
|
||||
extra = 2
|
||||
fieldsets = [
|
||||
(None, {"fields": ["image", "title"]}),
|
||||
(None, {"fields": ["image", "title"], "description": "First group"}),
|
||||
(
|
||||
"Details",
|
||||
{"fields": ["description", "creation_date"], "classes": ["collapse"]},
|
||||
{
|
||||
"fields": ["description", "creation_date"],
|
||||
"classes": ["collapse"],
|
||||
"description": "Second group",
|
||||
},
|
||||
),
|
||||
(
|
||||
"Details", # Fieldset name intentionally duplicated
|
||||
{"fields": ["update_date", "updated_by"]},
|
||||
{"fields": ["update_date", "updated_by"], "description": "Third group"},
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user