edit_inline regressed, no longer using custom templates
|Reported by:||Yary||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I just ran into the same problem, and it took over an hour to track it down.
Seems that I could once sublcass BoundRelatedObject, and set edit_inline=MySubclass, and get custom behavior. Now seems that don't work no more.
Suggestion, change admin_modify.py 'EditInlineNode' to read, in part,
if relation.field.rel.edit_inline == models.TABULAR: bound_related_object_class = TabularBoundRelatedObject elif relation.field.rel.edit_inline == models.STACKED: bound_related_object_class = StackedBoundRelatedObject else: bound_related_object_class = relation.field.rel.edit_inline