Mix FormView with ListView functionality
|Reported by:||Evandro Myller||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've been wrestling this for hours and still couldn't figure out how one can mix a
FormView with a
ListView without having to repeat code or writing nasty code pieces.
A very simple use case: Object search view.
Many times we need to combine a simple search form into a
ListView, but there's no straightforward way to do so. What I expected is that inheriting from
FormView at once could get me to what I need, but, instead, it clashes on
object_list context variables because of the order of their
In my - and many - cases, I need to process the search form - actually a model form, since it comes from a model called
SavedSearch - in order to filter items out, save the search object and whatever else, depending on the form.
I expected that #16074 would fix this. :-(