Increasing test coverage to 68%

This commit is contained in:
Maxime Beauchemin 2015-09-25 16:42:56 -07:00
parent aea304d814
commit 8d4c3ea381
1 changed files with 5 additions and 2 deletions

View File

@ -134,9 +134,12 @@ class Dashboard(Model, AuditMixinNullable):
def __repr__(self):
return self.dashboard_title
@property
def url(self):
return "/panoramix/dashboard/{}/".format(self.id)
def dashboard_link(self):
url = "/panoramix/dashboard/{}/".format(self.id)
return '<a href="{url}">{self.dashboard_title}</a>'.format(**locals())
return '<a href="{self.url}">{self.dashboard_title}</a>'.format(self=self)
@property
def js_files(self):