Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
[bug 1133734] Fix waffle cookie thing
Browse files Browse the repository at this point in the history
The persist_feedbackdev decorator persists the querystring setting for
the feedbackdev flag into a cookie using a name that django-waffle will
key off of. That broke when we updated django-waffle since they moved
the value to a new module.

This fixes that to look at the correct module.
  • Loading branch information
willkg committed Feb 17, 2015
1 parent f6ba2a2 commit f8cd339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fjord/feedback/views.py
Expand Up @@ -360,7 +360,9 @@ def _persist_feedbackdev(request, *args, **kwargs):
qs_feedbackdev = request.GET.get('feedbackdev', None)
resp = fun(request, *args, **kwargs)
if resp is not None and qs_feedbackdev is not None:
resp.set_cookie(waffle.COOKIE_NAME % 'feedbackdev', qs_feedbackdev)
resp.set_cookie(
waffle.settings.COOKIE_NAME % 'feedbackdev',
qs_feedbackdev)

return resp
return _persist_feedbackdev
Expand Down

0 comments on commit f8cd339

Please sign in to comment.