lepture/flask-wtf — pull request #143 by joshma (2014-08-01 02:54:30+00:00)
Title: Fix CsrfProtect exempt for blueprints

This fixes two blueprint-related issues:
- If you exempt a blueprint but no views, self._exempt_views is be
empty and thus blueprint exemption is skipped.
- If you have a blueprint defined in my.module.first, import it to
my.module.second, and declare a view there with that blueprint, then
the blueprint.import_name will be my.module.first and view.__module__
will be my.module.second.
The two strings don't match up, and thus the view doesn't get exempt
properly.

The fix is to use the blueprint name instead.