Skip to content

Commit

Permalink
Fall back to ROOT_URLCONF in SubscriptionPaymentMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Jul 24, 2018
1 parent e768725 commit 2a51f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djstripe/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def is_matching_rule(self, request):
return True

# Second we check against matches
match = resolve(request.path, request.urlconf)
match = resolve(request.path, getattr(request, "urlconf", settings.ROOT_URLCONF))
if "({0})".format(match.app_name) in EXEMPT:
return True

Expand Down

0 comments on commit 2a51f06

Please sign in to comment.