Humanize naturaltime alternative phrasing

2018-06-01 Thread Gregory Kaleka
Django Humanize's naturaltime filter currently uses the phrasing "5 hours from now". In some contexts, I find the phrasing "in 5 hours" more natural. Here's a diff in the naturaltime definition that would allow this alternative phrasing as an option. Any thoughts from the community on this?

Django bugfix release 2.0.6

2018-06-01 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2018/jun/01/bugfix-release/ -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Spaces between argument separator and argument in template filter generate error

2018-06-01 Thread Curtis Maloney
On 05/31/2018 06:39 PM, oli...@kidsnote.com wrote: Are there any reasons that not allow spaces between separator and arg? My first thought would be that it starts making the syntax looser, meaning more things that are currently error cases would be accepted as valid. Which means mistakes

Re: Spaces between argument separator and argument in template filter generate error

2018-06-01 Thread Alasdair Nicol
On Friday, 1 June 2018 03:06:01 UTC+1, Collin Anderson wrote: > Maybe it would be worth having a more friendly error message? > > I agree, it would be good to improve the message. I've also seen users confused by the "could not parse the remainder" message when they forget the spaces around