コード例 #1
0
def honeypot_field(field_name=None):
    return render_honeypot_field(field_name)
コード例 #2
0
ファイル: middleware.py プロジェクト: mivanov/django-honeypot
 def add_honeypot_field(match):
     """Returns the matched <form> tag plus the added <input> element"""
     return mark_safe(
         match.group() + render_to_string("honeypot/honeypot_field.html", render_honeypot_field())
     )
コード例 #3
0
ファイル: helpers.py プロジェクト: dimitrianoudi/kuma
def honeypot_field(field_name=None):
    return render_honeypot_field(field_name)
コード例 #4
0
 def add_honeypot_field(match):
     """Returns the matched <form> tag plus the added <input> element"""
     return mark_safe(match.group() +
                      render_to_string('honeypot/honeypot_field.html',
                                       render_honeypot_field()))