Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread dash86no
I had another go at this one (can never sleep on a problem) Fixed it: The problem was my lack of test data. If you only have one record in the table related to your foreign key, then the filter list will not show up at the side of the admin screen. If you add another record then the filter list

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Ramiro Morales
On Thu, Nov 20, 2008 at 11:23 AM, dash86no <[EMAIL PROTECTED]> wrote: > > Having reread that documentation I can see it says "ForeignKey" as > plain as day. > > Sorry I'm an idiot. I'll work on this again tomorrow, time for sleep I > think > > > > On Nov 20, 10:19 pm, dash86no <[EMAIL PROTECTED]>

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread dash86no
Having reread that documentation I can see it says "ForeignKey" as plain as day. Sorry I'm an idiot. I'll work on this again tomorrow, time for sleep I think On Nov 20, 10:19 pm, dash86no <[EMAIL PROTECTED]> wrote: > Karen, > > Most people I know say "hey guys" to refer to mixed groups. I'm 27

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread dash86no
Karen, Most people I know say "hey guys" to refer to mixed groups. I'm 27 and mostly spending time with Americans nowadays so I don't know if that has anything to do with it. Anyway, I did try it, and I found whenever I tried to specify a foreign key it was simply ignored. I.e. no error message

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Daniel Roseman
On Nov 20, 12:33 pm, "Dominic Ashton" <[EMAIL PROTECTED]> wrote: > Guys, > > A brief google search has led me to conclude that it's not possible to > filter on a foreign key field in the Admin. > > Can anyone explain the design rationale around that? Filtering by anything > but a foreign key value

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 7:33 AM, Dominic Ashton <[EMAIL PROTECTED]>wrote: > Guys, > > A brief google search has led me to conclude that it's not possible to > filter on a foreign key field in the Admin. > Did you try it? I have foreign key fields specified in my filters and they work. What happ

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread tom
Hi Dominic, do you may have a code sample? -tom On 20 Nov., 13:33, "Dominic Ashton" <[EMAIL PROTECTED]> wrote: > Guys, > > A brief google search has led me to conclude that it's not possible to > filter on a foreign key field in the Admin. > > Can anyone explain the design rationale around that

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Dominic Ashton
Guys, A brief google search has led me to conclude that it's not possible to filter on a foreign key field in the Admin. Can anyone explain the design rationale around that? Filtering by anything but a foreign key value is usuless in many of my models. To give you a concrete example: I have a Pro