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
> -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
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
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
>
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
5 matches
Mail list logo