﻿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
2445	[patch] allow callable values for limit_choices_to	michael@…	Tim Graham <timograham@…>	"Allow '''limit_choices_to''' to test for and invoke callable value arguments.  This would allow filtering on dynamically  determined values.  It enhances the possibilities for customising the admin interface.  This may be related to Ticket 2193 (sounds similar at any rate).

For example:

{{{
def assigned_tasks():
   return get_assigned_tasks_id_list(blah, blah)

class TimeRecord(models.Model):
   task = models.ForeignKey(Task, limit_choices_to = {'id__in': assigned_tasks})
}}}
"	New feature	closed	Core (Other)	dev	Normal	fixed	sprint2013	zeraien@… gary.wilson@… django@… davidgrant@… mpjung@… hr.bjarni+django@… Odin Hørthe Omdal remco@… joseph.spiros@… mmitar@… leo@… Chris Chambers russamos semenov@… andreterra@… stj dschruth danny.adair@… Steven Bisseker philipe.rp@… kmike84@… christopher.r.adams@… someuniquename@…	Accepted	1	0	0	0	0	0
