{% extends "generic/form.html" %} {% load i18n %} {% block beneath_form %}
Expression using Jinja. Following variables are available:
request.user
: Passbook User Object (Reference)request.http_request
: Django HTTP Request Object (Reference) request.obj
: Model the Policy is run against. pb_flow_plan
: Current Plan if Policy is called while a flow is active.pb_is_sso_flow
: Boolean which is true if request was initiated by authenticating through an external Provider.pb_is_group_member(user, group_name)
: Function which checks if user
is member of a Group with Name group_name
.pb_logger
: Standard Python Logger Object, which can be used to debug expressions.pb_client_ip
: Client's IP Address.Custom Filters:
regex_match(regex)
: Checks if value matches regex
regex_replace(regex, repl)
: Replace string matched by regex
with repl