Commit 178f504b authored by bryhoyt's avatar bryhoyt Committed by GitHub

Recurse when saving inlines, to allow multiple levels of nesting

parent 3c03f471
......@@ -80,6 +80,11 @@ class InlineModelFormList(InlineFieldList):
model.save()
# Recurse, to save multi-level nested inlines
for f in itervalues(field.form._fields):
if f.type == 'InlineModelFormList':
f.save_related(model)
class CustomModelConverter(ModelConverter):
def __init__(self, view, additional=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment