limit choices to logged-in user

2008-08-19 Thread patrickk
is there a way to limit choices (using foreign key) to the logged-in user? I´ve tried limit_choices_to = {'user': request.user}, but that is obviously not working since "request" is not available. any ideas? thanks, patrick --~--~-~--~~~---~--~~ You received thi

RE: limit choices to logged-in user

2008-08-19 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of patrickk > Sent: 19 August 2008 14:12 > To: Django users > Subject: limit choices to logged-in user > > > is there a way to limit choices (using foreign ke

Re: limit choices to logged-in user

2008-08-19 Thread patrickk
t; To: Django users > > Subject: limit choices to logged-in user > > > is there a way to limit choices (using foreign key) to the > > logged-in user? > > > I´ve tried  limit_choices_to = {'user': request.user}, but > > that is obviously not working since

Re: limit choices to logged-in user

2008-08-19 Thread brentp
rs@googlegroups.com > > > [mailto:[EMAIL PROTECTED] On Behalf Of patrickk > > > Sent: 19 August 2008 14:12 > > > To: Django users > > > Subject: limit choices to logged-in user > > > > is there a way to limit choices (using foreign key) to the >

Re: limit choices to logged-in user

2008-08-20 Thread Erik Allik
nality of the site. >> >> thanks, >> patrick >> >> On Aug 19, 5:48 pm, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: >> >>>> -Original Message- >>>> From: django-users@googlegroups.com >>>> [mailto:[EMAI