How can I iterate over ManyToManyField?
Like Abid A already answered, you are missing brackets ()
for t in myStuff.things.all():
print t.myStuffs.all()
Try adding the ()
after all
: myStuff.things.all()
Like Abid A already answered, you are missing brackets ()
for t in myStuff.things.all():
print t.myStuffs.all()
Try adding the ()
after all
: myStuff.things.all()