Re: Efficient ways to limit_choices_to

2006-08-21 Thread Chris Long
Hey Seemant, Sorry about not getting back to you sooner to work on this. Been finishing off last minute details with my SoC project. Here is what I've come up w/ that (w/ my limited testing) seems to work: preacher = models.ForeignKey ( Person, limit_choices_to = {

Efficient ways to limit_choices_to

2006-08-21 Thread seemant
Hi All, I've been struggling with this issue for a few days now. In IRC, clong got me the closest I've been to a solution, but things are still erroring out. I have two inital models: class Person( models.Model ): name = models.CharField (maxlength = 100) user = models.ForeignKey (