File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,8 @@ def get_error_list(self, errors):
409
409
410
410
def get_form_layout (self , layout ):
411
411
allow_blank = isinstance (self .admin_view , DetailAdminView )
412
- fs = dict (
413
- [(f .model , InlineFormset (f , allow_blank )) for f in self .formsets ])
412
+ # fixed #176 bug, change dict to list
413
+ fs = [(f .model , InlineFormset (f , allow_blank )) for f in self .formsets ]
414
414
replace_inline_objects (layout , fs )
415
415
416
416
if fs :
@@ -420,8 +420,9 @@ def get_form_layout(self, layout):
420
420
if not container :
421
421
container = layout
422
422
423
- for fs in fs .values ():
424
- container .append (fs )
423
+ # fixed #176 bug, change dict to list
424
+ for key , value in fs :
425
+ container .append (value )
425
426
426
427
return layout
427
428
You can’t perform that action at this time.
0 commit comments