mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
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:
commit
b380b1587a
@ -111,7 +111,7 @@ def _customize_graph():
|
||||
class URLModificationMiddleware(object):
|
||||
|
||||
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)
|
||||
_customize_graph()
|
||||
register(
|
||||
|
Loading…
Reference in New Issue
Block a user