form fixed
This commit is contained in:
@@ -1300,6 +1300,10 @@ def sendmail(request):
|
||||
messages.error(
|
||||
request, "Something went wrong trying to send the form")
|
||||
return HttpResponseRedirect('/rowers/email/thankyou/')
|
||||
else:
|
||||
if "captcha" in form.errors:
|
||||
messages.error(request,"Bots are not welcome")
|
||||
return HttpResponseRedirect(reverse("sendmail"))
|
||||
|
||||
|
||||
return render(request,'email.html',
|
||||
|
||||
Reference in New Issue
Block a user