]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Use messages framework in 'patch'
authorStephen Finucane <stephen.finucane@intel.com>
Mon, 21 Mar 2016 16:31:11 +0000 (16:31 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:25:10 +0000 (11:25 +0000)
commite8750a4741401a5574c2c980783cecc743f94c4a
treeef2c6c6bf0535fd66b90cb1bd69d091628857520
parentaa7e252bf6aac95350bdf50b02e82651f82f5bf7
views: Use messages framework in 'patch'

Django provides the messages framework as part of the core library.
This framework allows for "toast"-style notifications to the user,
for things like post-form processing notifcations. At the moment
patchwork provides this functionality using custom code. However, this
code is not well tested and, like any code, incurs some degree of
maintenance overhead. It would be easier to use the "batteries" that
Django provides so begin doing just that.

This change only covers one of two places in which this custom
messages framework is currently used. By extension, it also covers one
of the two places in which 'render_to_response' is still used. This
"other place" will be addressed in a follow-up commit.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/views/patch.py
templates/base.html