code: def check_honeypot(func=None, field_name=None):
      
      # hack to reverse arguments if called with str param
      if isinstance(func, six.string_types):
          func, field_name = field_name, func
  
      def decorated(func):
          def inner(request, *args, **kwargs):
              response = verify_honeypot_value(request, field_name)
              if response:
                  return response
              else:
                  return func(request, *args, **kwargs)
          return wraps(func, assigned=available_attrs(func))(inner)
  
      if func is None:
          def decorator(func):
              return decorated(func)
          return decorator
      return decorated(func)
docs: Check request.POST for valid honeypot field.
  
          Takes an optional field_name that defaults to HONEYPOT_FIELD_NAME if
          not specified.