shammi.khan.73 0 Newbie Poster

i need some help in following situation.

After a successful searching for a user, i want to show the users information. It's a m2m flied, but I'm getting all objects from this model. I do not know, how to filter users information.

Got this template:

{% for player in players %}
                <tr>
                    <td>{{ player.last_name }} <span class="text-muted">({{ player.first_name }})</span></td>
                    <td>{{ player.gender }}</td>
                    <td>
                        {% for choice in search.league %}
                        <div class="">
                            {{ choice }}
                        </div>
                    {% endfor %}
                    </td>

This way it is showing all objects in League.

I have this in my forms.Form

league = forms.ModelMultipleChoiceField(required=False, widget=forms.CheckboxSelectMultiple, queryset=League.objects.all())

I realize that I must also send the users-information from the view, but I do not know how.