mistercrunch closed pull request #6522: [cosmetic] add css no-wrap on CRUD's
last modified
URL: https://github.com/apache/incubator-superset/pull/6522
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index f1cb1cd3fc..ec2ac82102 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -270,12 +270,12 @@ def changed_by_(self):
@renders('changed_on')
def changed_on_(self):
- return Markup(
- '<span class="no-wrap">{}</span>'.format(self.changed_on))
+ return Markup(f'<span class="no-wrap">{self.changed_on}</span>')
@renders('changed_on')
def modified(self):
- return humanize.naturaltime(datetime.now() - self.changed_on)
+ time_str = humanize.naturaltime(datetime.now() - self.changed_on)
+ return Markup(f'<span class="no-wrap">{time_str}</span>')
class QueryResult(object):
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]