﻿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
20865	admin raw_id_fields does not call value in limit_choices_to	Collin Anderson	nobody	"The docs show that `limit_choices_to` works with callables:
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.limit_choices_to

However, the raw_id_fields widget does not handle this correctly, and it generates a url like so:
`/admin/auth/user/?last_login__lte=%3Cbuilt-in%20method%20today%20of%20type%20object%20at%200xb72cd440%3E`

As far as I can tell, this has never worked correctly. I have a simple app that demonstrates the problem:
https://github.com/collinanderson/limit_choices_to/commit/8e30de93dea1908ae363b8556e3f89d36b031e79
"	Bug	closed	contrib.admin	1.6-beta-1	Normal	fixed		Collin Anderson	Ready for checkin	1	0	0	0	0	0
