]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toastergui: Call csrf function in all pages to ensure cookie is sent
authorMichael Wood <michael.g.wood@intel.com>
Tue, 18 Aug 2015 22:32:52 +0000 (15:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Aug 2015 17:00:12 +0000 (18:00 +0100)
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]

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>
lib/toaster/toastergui/templates/base.html

index d75bf16bf2f689605b470d0b9c55ecc989969b36..f1871002645fe7855e2a92abf5d16c005ae0ed56 100644 (file)
@@ -69,6 +69,7 @@
 
 <body style="height: 100%">
 
+  {% csrf_token %}
   <div id="loading-notification" class="alert lead text-center" style="display:none">
     Loading <i class="fa-pulse icon-spinner"></i>
   </div>