first_menu_items SomePage objects filter page_first_menu__exa ct True

1
2
3
4
5
first_menu_items = SomePage.objects.filter(page_first_menu__exact=True)
for first_menu_item in first_menu_items:
first_menu_dict[item] = first_menu_item
first_menu_dict[url] = "urltext"
first_menu.append(first_menu_dict)