horizon/horizon/tabs
Timur Sufiev 019e5490fb Remove additional response.render() for tabs
Right now TabbedView has additional .render() call. Thus
get_context_data() for TabbedView returns already rendered response
with rendered=True flag, which makes it read-only.  This blocks
Profiler middleware in modifying the response. For example, we cannot
add any messages to response from tabbed view.

Simple views have no additional rendering. It was done because of
issues with raising redirect exceptions from tabbed views long
ago. Looks like now there is no such issues and raising redirects from
tabbed views is covered with unit tests. To ensure that nothing broke,
a test with a tab raising Http302 was added - it still redirects to
the url provided as before.

Change-Id: I37076abc15008a523f37da0d09b5b041ef77844e
Closes-Bug: #1595095
2016-12-06 12:39:24 +03:00
..
__init__.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
base.py Modify exception message style according to i18n guidelines 2016-06-13 15:36:47 +08:00
views.py Remove additional response.render() for tabs 2016-12-06 12:39:24 +03:00