﻿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
10910	Unicode dictionary keys cause TypeError when used as arguments to filter()	mostrovsky	nobody	"I'm using dictionaries to pass arguments to a filter. If the keys of the dictionary are unicode, this causes a TypeError similar to the ones seen in previous tickets (see #10645, which fixed this problem from the admin side of things)

{{{

>>> filter_args = {u'date_created':'2009-01-01'}
>>> MyClass.objects.filter(**filter_args)
>>> TypeError: filter() keywords must be strings

}}}

Of course, casting the keys by using str() fixes the problem.

This behavior can bee seen on trunk, revision 10630, with python2.5"		closed	Database layer (models, ORM)	dev		invalid			Unreviewed	0	0	0	0	0	0
