On Jul 16, 12:06 pm, Tom Evans <tevans...@googlemail.com> wrote: > > My question is: How do I access the extra fields stored in my custom > > intermediate table? In this case that would be the count field. I > > have search the Django documentation but so far I haven't found any > > examples. > > > Thanks for any help! > > > Mike > > m = Motherboard.objects.get(name="C7X58") > mem_mods = m.memmodules_set.all() > for mem_mod in mem_mods: > print "%d x %s" % (mem_mod.count, mem_mod.memory) > > Cheers > > Tom
Thanks Tom! That worked perfectly. Mike --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---