[1.4.X] Fixed #16936 - Updated javascript for CSRF protection.
[1.4.X] Fixed #16936 - Updated javascript for CSRF protection.

Thanks Idan Gazit for the patch.

Backport of e376558ed2 from master

riklaunim/django-custom-multisite,riklaunim/django-custom-multisite,riklaunim/django-custom-multisite