Hey, Ive a problem referencing to my "THROUGH" m2m model extra fields. I can reference the linked model (User), but not the extra detail on the "through-model" (listuser)
My Model definition--- User model is the built in User model. class joblist(models.Model): userdetail = models.ManyToManyField(User,through='userextra') class userextra(models.Model): joblist = models.ForeignKey(joblist) user = models.ForeignKey(User) comments= models.CharField(max_length=16384, blank=True, null=True) In my Template----- {% for row in joblist %} html here {% for item in row.userdetail.all %} {{item.username}} - {{item.userextra.comments}} - {{item.comments}} (ie I want to print comments here) {% endfor %} {% endfor %} What I get--- Job1,Jim--Job2,Mike-- So I am getting the detail from the "User" model but Im not getting the extra fields on the userextra model???? Any help appreciated.... N -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.