horizon/horizon
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
..
browsers Consolidated common angular view 2016-11-17 12:07:16 -08:00
conf Move out integration tests scaffolds from Horizon production code 2016-05-31 10:01:21 +00:00
contrib Panel static finder 2016-06-01 02:14:17 +00:00
forms Replaces uuid.uuid4 with uuidutils.generate_uuid() 2016-11-08 18:19:34 +08:00
hacking Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
locale Imported Translations from Zanata 2016-12-05 07:33:39 +00:00
management [Django 1.9] Stop using django.utils.importlib 2016-01-26 11:19:23 +00:00
middleware Merge "py3:Remove six.iterXXX" 2016-11-16 12:31:57 +00:00
static Bug fixes Magic Search 2016-12-01 00:40:22 +00:00
tables Fix mox trapped errors 2016-11-25 16:58:47 +11:00
tabs Remove additional response.render() for tabs 2016-12-06 12:39:24 +03:00
templates Improve Horizon nav sidebar 2016-11-23 16:17:13 +00:00
templatetags Fix docstring warnings 2016-09-24 20:44:48 +09:00
test Remove additional response.render() for tabs 2016-12-06 12:39:24 +03:00
utils Use os.path.relpath in place of string.replace 2016-11-30 11:40:03 +01:00
workflows Merge "py3:Remove six.iterXXX" 2016-11-16 12:31:57 +00:00
__init__.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
base.py Fix compatibility issues with Django 1.10 2016-09-20 12:29:16 +01:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
exceptions.py Fix docstring warnings 2016-09-24 20:44:48 +09:00
karma.conf.js Refactor tox & update docs 2016-11-30 20:38:59 +00:00
loaders.py Remove all pre-Django 1.8 workarounds 2016-01-24 22:12:02 +00:00
messages.py Uniquify horizon messages returned in a single response 2014-09-17 13:45:07 +00:00
notifications.py Add message of the day option 2016-01-22 11:31:36 -08:00
site_urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
themes.py Fix missing 'THEME' key 2016-08-03 20:06:36 +00:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py Wrap api calls with tracing decorators 2016-12-01 19:31:10 +00:00