Skip to content
Snippets Groups Projects
Commit a3eb9b43 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix missing fieldset / inlines order

parent ec678cca
No related branches found
No related tags found
No related merge requests found
Pipeline #12052 passed
......@@ -19,7 +19,11 @@ def get_fieldsets_and_inlines(context):
for choice in (
model_admin.get_fieldsets_and_inlines_order(context)
if hasattr(model_admin, "get_fieldsets_and_inlines_order")
else model_admin.fieldsets_and_inlines_order
else (
model_admin.fieldsets_and_inlines_order
if hasattr(model_admin, "fieldsets_and_inlines_order")
else []
)
):
if choice == FieldsetInlineOrder.FIELDSET:
fieldsets_and_inlines.append(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment