mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[hotfix] Druid explore/table dropdown doesn't change anything
This commit is contained in:
parent
5a870fe1c2
commit
83e0e58888
@ -341,6 +341,14 @@ class Queryable(object):
|
||||
def url(self):
|
||||
return '/{}/edit/{}'.format(self.baselink, self.id)
|
||||
|
||||
@property
|
||||
def explore_url(self):
|
||||
if self.default_endpoint:
|
||||
return self.default_endpoint
|
||||
else:
|
||||
return "/caravel/explore/{obj.type}/{obj.id}/".format(obj=self)
|
||||
|
||||
|
||||
|
||||
class Database(Model, AuditMixinNullable):
|
||||
|
||||
@ -551,13 +559,6 @@ class SqlaTable(Model, Queryable, AuditMixinNullable):
|
||||
def name(self):
|
||||
return self.table_name
|
||||
|
||||
@property
|
||||
def explore_url(self):
|
||||
if self.default_endpoint:
|
||||
return self.default_endpoint
|
||||
else:
|
||||
return "/caravel/explore/{obj.type}/{obj.id}/".format(obj=self)
|
||||
|
||||
@property
|
||||
def table_link(self):
|
||||
return '<a href="{obj.explore_url}">{obj.table_name}</a>'.format(obj=self)
|
||||
|
Loading…
Reference in New Issue
Block a user