master
fefa4ka 9 years ago
parent 0840424af6
commit eae0689726
  1. 6
      djangocms_forms/forms.py

@ -321,10 +321,12 @@ class FormBuilder(forms.Form):
# Simple antispam
if data['name'] == 'phone' and data['value'] in ['4955331826', '123456']:
request.session[form_slug] = None
return
# if data['name'] == 'message' and data['value']:
# return
if data['name'] == 'message' and data['value']:
request.session[form_slug] = None
return
# Some contacts
if not send or len(contacts) == 0:

Loading…
Cancel
Save