mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
fix: create property for schema_perm for Query
(#20871)
* create property for schema_perm * update references
This commit is contained in:
parent
cd578d2865
commit
35184b2994
@ -271,6 +271,10 @@ class Query(Model, ExtraJSONMixin, ExploreMixin): # pylint: disable=abstract-me
|
||||
def dttm_cols(self) -> List[Any]:
|
||||
return [col.get("column_name") for col in self.columns if col.get("is_dttm")]
|
||||
|
||||
@property
|
||||
def schema_perm(self) -> str:
|
||||
return f"{self.database.database_name}.{self.schema}"
|
||||
|
||||
@property
|
||||
def default_endpoint(self) -> str:
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user