make sure csrf token gets set
This commit is contained in:
parent
66f55402ec
commit
1299c25f3b
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue