I
I
IIITRIX2019-06-17 22:20:14
Django
IIITRIX, 2019-06-17 22:20:14

Django naturaltime  ?

Tell me how to change the output of the naturaltime result
Now it is output like this 32 & nbsp ; minutes ago
I need 32 & nbsp ; minutes & nbsp ; back
Where to add or completely remove & nbsp ; ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-06-18
@IIITRIX

Filters that display any units of measurement use non-breaking spaces to separate them. Relevant ticket .
Try sending the output to the safe filter :{{ some_date|naturaltime|safe }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question