dynamic limit_choices_to issues

2006-07-04 Thread william
I'm running with svn r-3275. I have the following models: class Application(models.Model): name = models.CharField(maxlength=50) class Meeting(models.Model): application = models.ForeignKey(Application) If I'm using, in this class, limit_choices_to={'application__name_

Re: dynamic limit_choices_to issues

2006-07-04 Thread Matt McDonald
Shouldn't that be: limit_choices_to= {'meeting__application__name__exact':meeting.application.name} On 05/07/2006, at 6:53 AM, william wrote: > > I'm running with svn r-3275. > > I have the following models: > > class Application(models.Model): > name = models.CharField(maxlength=50) >

Re: dynamic limit_choices_to issues

2006-07-05 Thread william
Indeed, you are correct, but that does not solve the issue. still with the error: 'ForeignKey' object has no attribute 'application' Matt McDonald wrote: > Shouldn't that be: > limit_choices_to= > {'meeting__application__name__exact':meeting.application.name} > > On 05/07/2006, at 6:53 AM, wil