Skip to content

Commit

Permalink
Sorting tables by "modified" is broken (apache#6027)
Browse files Browse the repository at this point in the history
* Fix sorting by modified

* Fix column name in decorator

(cherry picked from commit df341ff)
  • Loading branch information
betodealmeida authored and youngyjd committed Oct 17, 2018
1 parent aeebfe1 commit 8bded3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def changed_on_(self):
return Markup(
'<span class="no-wrap">{}</span>'.format(self.changed_on))

@renders('modified')
@renders('changed_on')
def modified(self):
return humanize.naturaltime(datetime.now() - self.changed_on)

Expand Down

0 comments on commit 8bded3f

Please sign in to comment.