This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new df341ff Sorting tables by "modified" is broken (#6027)
df341ff is described below
commit df341ffd26987e08b5559b9c5a2a794cd5c6d535
Author: Beto Dealmeida <[email protected]>
AuthorDate: Thu Oct 4 17:16:19 2018 -0700
Sorting tables by "modified" is broken (#6027)
* Fix sorting by modified
* Fix column name in decorator
---
superset/models/helpers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index 417a447..25b808c 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -279,7 +279,7 @@ class AuditMixinNullable(AuditMixin):
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)