Thanks, submitted upstream.
-bavery

On Mon, Aug 17, 2015 at 9:48 AM, Michael Wood <[email protected]> wrote:
> 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 <[email protected]>
> ---
>  bitbake/lib/toaster/toastergui/templates/base.html | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/bitbake/lib/toaster/toastergui/templates/base.html 
> b/bitbake/lib/toaster/toastergui/templates/base.html
> index d75bf16..f187100 100644
> --- a/bitbake/lib/toaster/toastergui/templates/base.html
> +++ b/bitbake/lib/toaster/toastergui/templates/base.html
> @@ -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>
> --
> 2.1.4
>
> --
> _______________________________________________
> toaster mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/toaster
-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to