mirror of
https://github.com/valitydev/redash.git
synced 2024-11-09 02:06:49 +00:00
Remove dead code
This commit is contained in:
parent
dc6bc071f1
commit
74e1b3119f
@ -1199,13 +1199,6 @@ class Dashboard(ChangeTrackingMixin, TimestampMixin, BelongsToOrgMixin, db.Model
|
||||
def get_by_slug_and_org(cls, slug, org):
|
||||
return cls.query.filter(cls.slug == slug, cls.org==org).one()
|
||||
|
||||
def tracked_save(self, changing_user, old_object=None, *args, **kwargs):
|
||||
self.version += 1
|
||||
self.save(*args, **kwargs)
|
||||
# save Change record
|
||||
new_change = Change.save_change(user=changing_user, old_object=old_object, new_object=self)
|
||||
return new_change
|
||||
|
||||
def __unicode__(self):
|
||||
return u"%s=%s" % (self.id, self.name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user