Skip to content

Commit

Permalink
Adding perm property to Datasource model
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 5, 2015
1 parent cd55ea7 commit d810a9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@ def metrics_combo(self):
def name(self):
return self.datasource_name

@property
def perm(self):
return (
"[{self.cluster_name}].[{self.datasource_name}]"
"(id:{self.id})").format(self=self)

def __repr__(self):
return self.datasource_name

Expand Down

0 comments on commit d810a9d

Please sign in to comment.