On Wed, Aug 1, 2012 at 12:43 AM, Melvyn Sopacua <m.r.sopacua@gmail.com> wrote:On 31-7-2012 6:17, Lachlan Musicman wrote:
> I have Person, Certificate, Job and Compensation objects. The last three
> all
> have an FK (or M2M) back to a (or some) Person(s).
>You don't need any of these. In your template, simply call:
{{ person.certificate_set.fieldname }}I will try using person.vacancy_set.all now ...
Ok - this only works for FK relationships, not for M2M relationships?
cheers
L.
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment