I have the following models defined:
class Player(models.Model):
Team = models.ForeignKey(Team)
Name = models.CharField(max_length=200)
Position = models.CharField(max_length=3)
... snip ...
What I would like to output in a view is a list of players who are in the team with id = 1.
I have tried things such as:
{% for player in userTeam.userTeamSquad %}
<tr><td>{{ player.Name }}</td><td> {{ player.Position }}</td></tr>
{% endfor %}
But can't get it right.