Compare commits

4 Commits

Author SHA1 Message Date
47669c4d04 Merge branch 'standalone' into mprofiag
# Conflicts:
#	requirements.in
2020-09-09 16:03:55 +02:00
2dd84d27f0 add recaptcha plugin 2020-09-07 15:53:28 +02:00
8eeb5f5947 fix 2020-05-03 13:31:32 +02:00
0dfeb359ac fix 2020-05-03 13:18:45 +02:00
3 changed files with 18 additions and 8 deletions

View File

@@ -21,6 +21,14 @@ django-image-cropping==1.2.0
django-anymail[mailgun]==1.4
django-admin-view-permission==1.9
gunicorn==19.9.0
django-storages<1.9 # https://stackoverflow.com/questions/60297619/divio-importerror-cannot-import-name-s3boto
sentry-sdk==0.14.3
aldryn-forms-recaptcha-plugin==1.0.0.2
django-recaptcha2==1.4.1
# compat versions
django-storages<1.9 # https://stackoverflow.com/questions/60297619/divio-importerror-cannot-import-name-s3boto
psycopg2<2.8
django-parler<=2.1
django-select2<=6.3.1
django-sekizai<=1.1.0
django-classy-tags<=1.0.0
djangocms-attributes-field<=1.2.0

View File

@@ -38,6 +38,8 @@ aldryn_addons.settings.load(locals())
INSTALLED_APPS.insert(0, 'admin_view_permission')
INSTALLED_APPS.extend([
'aldryn_forms_recaptcha_plugin',
'snowpenguin.django.recaptcha3',
'portal',
'project',
'fontawesome',
@@ -257,3 +259,8 @@ if not DEBUG:
]
DATA_UPLOAD_MAX_MEMORY_SIZE = 1024 * 1024 * 1024
RECAPTCHA_PUBLIC_KEY = '6Lec78gZAAAAANc-oxXJPMi7BXmINlP-QkcS937g'
RECAPTCHA_PRIVATE_KEY = '6Lec78gZAAAAADuIppqW7cSh6iPw3TZQ9r-ogHtz'
RECAPTCHA_SCORE_THRESHOLD = 0.5

View File

@@ -203,12 +203,7 @@ class FormPlugin(_FormPlugin):
module = 'Content'
name = 'Form'
child_classes = ['TextField', 'TextAreaField', 'EmailField', 'RadioSelectField', 'MultipleSelectField',
'SubmitButton']
def send_notifications(self, instance, form):
if dict(form.get_serialized_field_choices()).get('honeypot', ''):
return []
return super(FormPlugin, self).send_notifications(instance, form)
'SubmitButton', 'ReCaptchaFieldPlugin']
class SocialMediaListItemInlineAdmin(admin.TabularInline):