1
0
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:
Aaron Tan 2017-06-06 15:20:39 -04:00 committed by GitHub
commit b380b1587a

View File

@ -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(