mirror of
https://github.com/apache/superset.git
synced 2026-06-05 23:59:25 +00:00
Increasing test coverage to 68%
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user