Fix unicode representatino of Widget and Visualization models.

This commit is contained in:
Arik Fraimovich 2014-02-08 21:01:21 +02:00
parent f3c87ef313
commit 6e38050ac4

View File

@ -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)