Re: Problem with passing information from related model to a view

2009-06-24 Thread paul_tanner
Thx. DR. Duh. I had the foreignkey in an earlier test and then took it out again. Interesting that no error raised. The other thing is that the template needed to call for the related field thus: {{ obj.fname }} {{ obj.sname }} : {{ obj.organisation.organisation }} (seems logical now) With t

Re: Problem with passing information from related model to a view

2009-06-24 Thread Daniel Roseman
On Jun 24, 6:26 pm, paultanner wrote: > As you can see from this I am just learning django. > I am trying to list contacts and their related organisations.  This > does list the contact names. > No errors are raised but fields from Organisations do not show with > this view and template. > I gues

Problem with passing information from related model to a view

2009-06-24 Thread paultanner
As you can see from this I am just learning django. I am trying to list contacts and their related organisations. This does list the contact names. No errors are raised but fields from Organisations do not show with this view and template. I guess I need to be more explicit in referncing the rela