t = Team.objects.get(pk=168)
for x in t.teamplayer_set.all():
    if x.captain:
        print('%s (Captain)' % x.player.name)
else:
    pass
In Django, how do you retrieve data from extra fields on many-to-many relationships without an explicit query for it?