cfpb / django-flags

Feature flags for Django projects
https://cfpb.github.io/django-flags/
Creative Commons Zero v1.0 Universal
260 stars 32 forks source link

Make requests optional in template tags #3

Closed willbarton closed 6 years ago

willbarton commented 6 years ago

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 should close https://github.com/cfpb/wagtail-flags/issues/30

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 63


Totals Coverage Status
Change from base Build 61: 0.0%
Covered Lines: 767
Relevant Lines: 767

💛 - Coveralls