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 Untouched.
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}}-"I want to print comments here"
{% endfor %}
{% endfor %}
Ive tried {{item.userextra.comments}} {{item.comments}} {{item.douser.comments}}
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