Re: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread Ricardo Cataldi
filter[1], >> place__gte=user.location_filter[0]) >> >> >> >> I have not tested this solution, but with some minor code changes it >> should work like a charm in filtering the club queryset. >> >> >> >> *From:* django...@googlegroups.com

Re: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread GavinB841
r.location_filter[0]) > > > > I have not tested this solution, but with some minor code changes it > should work like a charm in filtering the club queryset. > > > > *From:* django...@googlegroups.com < > django...@googlegroups.com > *On Behalf Of *GavinB841 >

RE: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread Ricardo Cataldi
: Django users Subject: Trying to filter out choices in a form based on the logged in user. Hi all, If anyone could help or point me in the direction of some documentation for the below problem I am having I would really appreciate it. Just to explain quickly: 1. I have a model called

Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread GavinB841
Hi all, If anyone could help or point me in the direction of some documentation for the below problem I am having I would really appreciate it. Just to explain quickly: 1. I have a model called "Team" which contains a foreign key to another model called "Club" 2. The "Club" model cont