1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

fix /migrations_notran

This commit is contained in:
Ryan Petrello 2019-02-13 08:59:20 -05:00
parent 8a3c10686e
commit 2a94611801
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

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