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]