Я хочу показать Лигу женщин в шаблоне, и вот мой код views.py:
leagues = League.objects.all()
for league in leagues:
print(league.name)
Он покажет мне все названия лиг:
International Conference of Amateur Ice Hockey
International Collegiate Baseball Conference
Atlantic Federation of Amateur Baseball Players
Atlantic Federation of Basketball Athletics
Atlantic Soccer Conference
International Association of Womens' Basketball Players
American Conference of Amateur Football
Atlantic Amateur Field Hockey League
Transamerican Womens' Football Athletics Conference
Pacific Ice Hockey Conference
И как я могу пройти через это имя и выбрать Лиги, в которых есть Женские?