Merge pull request #3227 from ryanpetrello/fix-migration-tran-view

fix `/migrations_notran`

Reviewed-by: awxbot
             https://github.com/awxbot
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-02-13 14:25:29 +00:00
committed by GitHub

View File

@@ -64,6 +64,7 @@ class AWXWSGIHandler(WSGIHandler):
# "normal" middleware
if getattr(resolve(request.path), 'url_name', '') == 'migrations_notran':
# short-circuit middleware
request._cors_enabled = False
return self._get_response(request)
except django.urls.Resolver404:
pass