jsocol/django-waffle — Issue #29: Calling flag_is_active() twice on the *first* request rerolls
Author: jsocol
Created: 2012-01-26 18:32:34+00:00
State: open

If you call `flag_is_active()` twice in a request, the _first_ time a given user encounters this flag, Waffle will reroll the dice instead of using the value from the first roll.

This only happens iff you hit a dice roll (that is `flag.percent > 0` and the user matched for no other reason). Inside the `if flag.percent > 0:` block, we need to check `request.waffles` for existing data.