diff --git a/service_catalog/models/hooks.py b/service_catalog/models/hooks.py index f48fae5ce..50e9aad3a 100644 --- a/service_catalog/models/hooks.py +++ b/service_catalog/models/hooks.py @@ -33,6 +33,9 @@ class InstanceHook(AbstractGlobalHook): def get_absolute_url(self): return reverse_lazy("service_catalog:instancehook_list") + def __str__(self): + return self.name + class RequestHook(AbstractGlobalHook): state = IntegerField(choices=RequestState.choices) @@ -41,6 +44,9 @@ class RequestHook(AbstractGlobalHook): def get_absolute_url(self): return reverse_lazy("service_catalog:requesthook_list") + def __str__(self): + return self.name + class HookManager(object):