Skip to content

Commit

Permalink
add str to RequestHook and InstanceHook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Sep 18, 2023
1 parent a9ca8b7 commit 3f1f503
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service_catalog/models/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):

Expand Down

0 comments on commit 3f1f503

Please sign in to comment.