Getting the first item item in a many-to-many relation in Django,Group.objects.get(id=1).members.filter(is_main_user=True)[0]