Fixed a validation error where the form wouldn't validate after the deletion of a row within any table

This commit is contained in:
vince0656 2018-06-15 10:09:15 +01:00
parent 6fc6628995
commit 498b87dba5
3 changed files with 28 additions and 8 deletions

View file

@ -304,7 +304,14 @@ def create_event(request):
demo_users = DemoUser.objects.all()
# Render the template
return render(request, "polls/create_event.html", {"G_R_SITE_KEY": settings.RECAPTCHA_PUBLIC_KEY, "user_email": request.user.email, "events": events, "demo_users": demo_users})
return render(request,
"polls/create_event.html",
{
"G_R_SITE_KEY": settings.RECAPTCHA_PUBLIC_KEY,
"user_email": request.user.email,
"events": events,
"demo_users": demo_users
})
else:
return HttpResponseNotAllowed()