1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

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
commit 06ff26752a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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