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

Add a "before date" condition #23

Closed willbarton closed 5 years ago

willbarton commented 5 years ago

This PR adds a new before date condition that simply enables a flag if the current date is before the given date. This is the inverse of the existing after date condition.

willbarton commented 5 years ago

It's a shame we don't have a more user-friendly way to get people (Wagtail users, particularly) to the date format they need to provide, but that's out of scope for this PR.

I agree. I'd love to make the Wagtail-Flags UI vastly more friendly (perhaps with @niqjohnson's help soon)!