﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9520	date filter should not crash when dealing with non date objects	hotani	Eric Holscher	"I'm using date filter on a form field like so: {{ form.field.data|date:""m-d-Y"" }} When loading the form for editing, all is well. However, if validation fails for the form, date fields are sent back as unicode and not date objects. The date filter throws an error.

As a workaround, I wrote a wrapper for the date filter which puts it in a try/except block, returning the value if 'date' fails. This works but feels hacky.

"		closed	Template system	dev		fixed	date format filter template pycamp2009	Nicolás Miyasato	Accepted	1	0	0	0	0	0
