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

Peewee fix

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