Re: Field value from queryset as extra_context

2009-05-10 Thread George Song
On 5/10/2009 8:03 AM, Jamie Pittock wrote: > Please excuse the subject if it makes no sense. > > Simplified, I have two models Pub and Town. Pub has a ForeignKey > field called 'town'. I'm using the generic object_list view to > display all pubs in a particular town (based on a town slug in

Re: Field value from queryset as extra_context

2009-05-10 Thread Daniel Roseman
On May 10, 5:03 pm, Jamie Pittock wrote: > Please excuse the subject if it makes no sense. > > Simplified, I have two models Pub and Town.  Pub has a ForeignKey > field called 'town'.  I'm using the generic object_list view to > display all pubs in a particular town

Field value from queryset as extra_context

2009-05-10 Thread Jamie Pittock
Please excuse the subject if it makes no sense. Simplified, I have two models Pub and Town. Pub has a ForeignKey field called 'town'. I'm using the generic object_list view to display all pubs in a particular town (based on a town slug in the url). Something like this... def