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
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
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
3 matches
Mail list logo