Re: Get list by Foreign Key when using generic views

2006-02-24 Thread [EMAIL PROTECTED]
Ok, I see. I used the Many-to-One relationship though from the Statement model and changed it to Many-to-Many instead creating an attribute in Account model instead. Now I can get the statements via the account object in my template. Thanks Luke for your help. -Alen --~--~-~--~~--

Re: Get list by Foreign Key when using generic views

2006-02-23 Thread Luke Plant
On Thursday 23 February 2006 13:53, [EMAIL PROTECTED] wrote: > I would like to display a list of "statements" for a particular > "account". The "account_id" is a foreign key on "statements" table. > Is it possible, using generic views, to specify in the urlpatterns > the that will generate SQL q

Get list by Foreign Key when using generic views

2006-02-23 Thread [EMAIL PROTECTED]
New to Django; getting my feat a bit wet and need some assistance. I would like to display a list of "statements" for a particular "account". The "account_id" is a foreign key on "statements" table. Is it possible, using generic views, to specify in the urlpatterns the that will generate SQL que