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 sqlMetricModels No attribute get_perm (#6433)
Date Mon, 26 Nov 2018 17:09:00 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 7eb4684  FixBug sqlMetricModels No attribute get_perm (#6433)
7eb4684 is described below

commit 7eb46843cb4c29fc58fdbb87a66e371299867791
Author: zhaoyu89730105 <89730105@163.com>
AuthorDate: Tue Nov 27 01:08:54 2018 +0800

    FixBug sqlMetricModels No attribute get_perm (#6433)
---
 superset/connectors/sqla/models.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py
index b06332e..2ed2afd 100644
--- a/superset/connectors/sqla/models.py
+++ b/superset/connectors/sqla/models.py
@@ -238,6 +238,9 @@ class SqlMetric(Model, BaseMetric):
         ).format(obj=self,
                  parent_name=self.table.full_name) if self.table 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