mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Fix unicode representatino of Widget and Visualization models.
This commit is contained in:
parent
f3c87ef313
commit
6e38050ac4
@ -204,7 +204,7 @@ class Visualization(BaseModel):
|
||||
return d
|
||||
|
||||
def __unicode__(self):
|
||||
return u"%s=>%s" % (self.id, self.query_id)
|
||||
return u"%s %s" % (self.id, self.type)
|
||||
|
||||
|
||||
class Widget(db.Model):
|
||||
@ -229,7 +229,7 @@ class Widget(db.Model):
|
||||
}
|
||||
|
||||
def __unicode__(self):
|
||||
return u"%s=>%s" % (self.id, self.dashboard_id)
|
||||
return u"%s" % self.id
|
||||
|
||||
all_models = (QueryResult, Query, Dashboard, Visualization, Widget)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user