Skip to content

Commit

Permalink
Merge pull request #1477 from ar4s/fix/broken-links
Browse files Browse the repository at this point in the history
Fixed links
  • Loading branch information
szok committed Jun 8, 2015
2 parents 299588f + 6fae831 commit 3abde8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ralph/ui/channels.py
Expand Up @@ -37,7 +37,12 @@ def get_result(self, obj):
return obj.name

def get_item_url(self, obj):
return getattr(obj, 'url', None)
url = None
try:
url = obj.get_absolute_url()
except AttributeError:
url = getattr(obj, 'url', None)
return url

def format_match(self, obj):
return self.format_item_display(obj)
Expand Down

0 comments on commit 3abde8a

Please sign in to comment.