Skip to content

Commit

Permalink
Merge pull request #158 from avdata99/patch-1
Browse files Browse the repository at this point in the history
fixes #157
  • Loading branch information
barseghyanartur committed Feb 22, 2018
2 parents 72fbfad + 1ef7c06 commit 481c272
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging

from django.utils.translation import ugettext_lazy as _
from django.conf. import settings

from fobi.base import (
FormElementPlugin,
Expand Down Expand Up @@ -97,7 +98,7 @@ def get_form_field_instances(self, request=None, form_entry=None,
'help_text': self.data.help_text,
# 'initial': self.data.initial,
'required': self.data.required,
'widget': ReCaptchaWidget(attrs=widget_attrs),
'widget': ReCaptchaWidget(public_key=settings.RECAPTCHA_PUBLIC_KEY, attrs=widget_attrs),
}

return [(self.data.name, ReCaptchaField, field_kwargs)]

0 comments on commit 481c272

Please sign in to comment.