Skip to content

Commit

Permalink
Support django-recaptcha2>=1.4.0 (#1631)
Browse files Browse the repository at this point in the history
Fixes #1559.
  • Loading branch information
quantum5 committed Apr 10, 2021
1 parent 7c2099f commit 353a6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion judge/jinja2/social.py
Expand Up @@ -32,4 +32,6 @@ def func(request, *args):

@registry.function
def recaptcha_init(language=None):
return get_template('snowpenguin/recaptcha/recaptcha_init.html').render({'explicit': False, 'language': language})
from snowpenguin.django.recaptcha2.templatetags.recaptcha2 import recaptcha_common_init
return get_template('snowpenguin/recaptcha/recaptcha_init.html').render(
recaptcha_common_init(language, {'explicit': False}))

0 comments on commit 353a6a6

Please sign in to comment.