make sure csrf token gets set
@@ -10,6 +10,7 @@ from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm, Us
from django.core.serializers.json import DjangoJSONEncoder
from django.db import transaction
from django.http import HttpResponse, HttpResponseBadRequest
+from django.middleware import csrf
from django.shortcuts import redirect, render
from django.urls import reverse
from django.utils import timezone
@@ -92,6 +93,8 @@ def map_index(request, mode=None, slug=None, slug2=None, details=None, options=N
'embed': bool(embed),
}
+ csrf.get_token(request)
+
announcement = Announcement.get_current()
if announcement:
messages.info(request, announcement.text)
