Closed oscarmlage closed 7 years ago
Yes they are:
You have to define the add_form
and update_form
in the InlineAjaxCRUD
:
class Lines_AjaxCRUD(InlineAjaxCRUD):
model = Line
base_model = Invoice
inline_field = 'invoice'
add_form = LineForm
update_form = LineForm
...
If you define a custom form for the inlines, it does not work, it loads the default form:
new line
new invoice's line