Re: Foreignkeys and variables in a view

2010-08-17 Thread Nick
This appears to be working. Thanks a lot Steve, I really appreciate the help. On Aug 17, 9:07 am, Nick wrote: > Thanks, Steve. I'll implement this today and see what happens. > > On Aug 16, 9:46 pm, Steve Holden wrote: > > > On 8/16/2010 10:30 PM, Nick Tankersley wrote:> Thank you again for your

Re: Foreignkeys and variables in a view

2010-08-17 Thread Nick
Thanks, Steve. I'll implement this today and see what happens. On Aug 16, 9:46 pm, Steve Holden wrote: > On 8/16/2010 10:30 PM, Nick Tankersley wrote:> Thank you again for your > replies. They've been full of usefull > > information about how to clean up an otherwise pretty sloppy bit of code. >

Re: Foreignkeys and variables in a view

2010-08-16 Thread Steve Holden
On 8/16/2010 10:30 PM, Nick Tankersley wrote: > Thank you again for your replies. They've been full of usefull > information about how to clean up an otherwise pretty sloppy bit of code. > No problem. I hope you don't mind me keeping this dialog on the list (I see you didn't copy django-users, per

Re: Foreignkeys and variables in a view

2010-08-16 Thread Steve Holden
On 8/16/2010 9:30 PM, Nick wrote: > > Thanks for the reply. > > I assume the problem is coming from the views since the template 'for' > loop is technically doing what it's supposed to. > I find that hard to believe - you appear to be saying that you only want the candidates for the *last* state

Re: Foreignkeys and variables in a view

2010-08-16 Thread Steve Holden
On 8/16/2010 5:40 PM, Nick wrote: > I have a view that handles elections/races. That view takes a request > object and then based on that object sends the information to a > specific template. > > For each election/race there is a subset of candidates based on the > initial candidate_set from that

Foreignkeys and variables in a view

2010-08-16 Thread Nick
I have a view that handles elections/races. That view takes a request object and then based on that object sends the information to a specific template. For each election/race there is a subset of candidates based on the initial candidate_set from that race. I would like to know how to filter that