diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-08-18 15:32:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 18:05:50 +0100 |
commit | 55f13d45561f0e14e38bb79203404a06bb91786b (patch) | |
tree | e25dc01ba6d5375b5cb0a2a3f19f76226d4309f7 /bitbake/lib | |
parent | ae7d04832be5b9cbed29b5e78518f22660b6d178 (diff) | |
download | poky-55f13d45561f0e14e38bb79203404a06bb91786b.tar.gz |
bitbake: toastergui: Call csrf function in all pages to ensure cookie is sent
Not all pages call the csrf token template function so django does not
bother to send the cookike, this meant that all subsequent ajax calls
fail. So add this to the base template.
[YOCTO #8175]
(Bitbake rev: baed115081f888e027f92f37e12dc2dd2b874bf0)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index d75bf16bf2..f187100264 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
@@ -69,6 +69,7 @@ | |||
69 | 69 | ||
70 | <body style="height: 100%"> | 70 | <body style="height: 100%"> |
71 | 71 | ||
72 | {% csrf_token %} | ||
72 | <div id="loading-notification" class="alert lead text-center" style="display:none"> | 73 | <div id="loading-notification" class="alert lead text-center" style="display:none"> |
73 | Loading <i class="fa-pulse icon-spinner"></i> | 74 | Loading <i class="fa-pulse icon-spinner"></i> |
74 | </div> | 75 | </div> |