This PR makes a slight change to both Django and Jinja2 template tags/functions to make the request optional. In Django templates, request will not be assumed to be in the context, and in Jinja2 templates, the request argument is now optional.
Some conditions still require the request to be evaluated, but those conditions will raise RequiredForCondition if it is not given.
This PR also bumps the version to 3.0.1 in anticipation of release once it's merged.
This PR makes a slight change to both Django and Jinja2 template tags/functions to make the
request
optional. In Django templates,request
will not be assumed to be in thecontext
, and in Jinja2 templates, therequest
argument is now optional.Some conditions still require the
request
to be evaluated, but those conditions will raiseRequiredForCondition
if it is not given.This PR also bumps the version to 3.0.1 in anticipation of release once it's merged.
This should close https://github.com/cfpb/wagtail-flags/issues/30