Created
December 28, 2016 22:24
-
-
Save groovecoder/8c1e06a202e274ff3c374639bed4c23a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.contrib import messages | |
| def stripe_identity_check(get_response): | |
| def middleware(request): | |
| if request.user.needs_stripe_identity_stuff(): | |
| messages.warning('stripe_info_verify') | |
| response = get_response(request) | |
| return response | |
| return middleware |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment