superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: FixBug druidMetricModels No attribute get_perm (#6432)
Date Wed, 05 Dec 2018 17:46:49 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new fd54de7  FixBug druidMetricModels No attribute get_perm (#6432)
fd54de7 is described below

commit fd54de78563bb61843475c548a763e5473e42df8
Author: zhaoyu89730105 <89730105@163.com>
AuthorDate: Thu Dec 6 01:46:38 2018 +0800

    FixBug druidMetricModels No attribute get_perm (#6432)
---
 superset/connectors/druid/models.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py
index 0972f78..937c8d8 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -434,6 +434,9 @@ class DruidMetric(Model, BaseMetric):
                  parent_name=self.datasource.full_name,
                  ) if self.datasource else None
 
+    def get_perm(self):
+        return self.perm
+
     @classmethod
     def import_obj(cls, i_metric):
         def lookup_obj(lookup_metric):


Mime
View raw message