Commit 8651bac5 authored by Serge S. Koval's avatar Serge S. Koval

Peewee fix

parent 87ac20ca
......@@ -142,12 +142,12 @@ class InlineModelConverter(InlineModelConverterBase):
# Create field
child_form = model_form(info.model,
base_class=form.BaseForm,
only=info.form_columns,
exclude=exclude,
field_args=info.form_args,
allow_pk=True,
converter=converter)
base_class=form.BaseForm,
only=info.form_columns,
exclude=exclude,
field_args=info.form_args,
allow_pk=True,
converter=converter)
prop_name = 'fa_%s' % model.__name__
......@@ -158,8 +158,8 @@ class InlineModelConverter(InlineModelConverterBase):
InlineModelFormList(child_form,
info.model,
reverse_field.name,
label=label or info.model.__name__,
info))
info,
label=label or info.model.__name__))
setattr(field.rel_model,
prop_name,
......
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