mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore: Migrate /superset/user_slices and /superset/fave_slices to API v1 (#22964)
Co-authored-by: hughhhh <hughmil3s@gmail.com>
This commit is contained in:
@@ -332,6 +332,12 @@ class Slice( # pylint: disable=too-many-public-methods
|
||||
name = escape(self.chart)
|
||||
return Markup(f'<a href="{self.url}">{name}</a>')
|
||||
|
||||
@property
|
||||
def created_by_url(self) -> str:
|
||||
if not self.created_by:
|
||||
return ""
|
||||
return f"/superset/profile/{self.created_by.username}"
|
||||
|
||||
@property
|
||||
def changed_by_url(self) -> str:
|
||||
return f"/superset/profile/{self.changed_by.username}" # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user