Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CsrfProtect exempt for blueprints #143

Merged
merged 1 commit into from
Aug 20, 2014
Merged

Commits on Aug 1, 2014

  1. 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.
    joshma committed Aug 1, 2014
    Configuration menu
    Copy the full SHA
    bca563f View commit details
    Browse the repository at this point in the history