mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Fix up deprecation warning about get_response for middleware
It will no longer be allowed to be None by Django 4.0
This commit is contained in:
@@ -103,7 +103,7 @@ def _customize_graph():
|
||||
|
||||
|
||||
class URLModificationMiddleware(MiddlewareMixin):
|
||||
def __init__(self, get_response=None):
|
||||
def __init__(self, get_response):
|
||||
models = [m for m in apps.get_app_config('main').get_models() if hasattr(m, 'get_absolute_url')]
|
||||
generate_graph(models)
|
||||
_customize_graph()
|
||||
|
||||
Reference in New Issue
Block a user