Figuring out which view it is and adding the correct property to
that view is better than trying to re-render the view itself.
This should solve for django's generic views. It won't work
for Django vanilla views package, but we can deal with this
later if someone show interest for that.
Why should this be added
It removes the rendering of the view once, so it will be marginally faster. It also makes it
easier to reason about what is happening.
Checklist
[x] Tests are passing
[x] Documentation has been added or amended for this feature / update
Description
Figuring out which view it is and adding the correct property to that view is better than trying to re-render the view itself.
This should solve for django's generic views. It won't work for Django vanilla views package, but we can deal with this later if someone show interest for that.
Why should this be added
It removes the rendering of the view once, so it will be marginally faster. It also makes it easier to reason about what is happening.
Checklist