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? Als

Re: "Variables and attributes may not begin with underscores" error

2018-06-29 Thread Gregory Kaleka
The docs do mention it on the more complete template api page , though there isn't an explanation as to the reason. I would say it should at least be added to the template docs you link to. On Friday, June 29, 2018