mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
Merge pull request #6445 from jangsutsr/6433_prevent_generating_named_url_for_non_existing_endpoints
Prevent generating named URL from non-existing endpoints
This commit is contained in:
@@ -111,7 +111,7 @@ def _customize_graph():
|
|||||||
class URLModificationMiddleware(object):
|
class URLModificationMiddleware(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
models = apps.get_app_config('main').get_models()
|
models = [m for m in apps.get_app_config('main').get_models() if hasattr(m, 'get_absolute_url')]
|
||||||
generate_graph(models)
|
generate_graph(models)
|
||||||
_customize_graph()
|
_customize_graph()
|
||||||
register(
|
register(
|
||||||
|
|||||||
Reference in New Issue
Block a user