The double-underscore in the keyword "gender_type__name" of the filter method is a Django convention. It means "replace wth the correct syntax". If Python allowed it, it would be written as '''Person.objects.filter(gender_type.name="Male")''' but that is not legal syntax.
=== Model overview ===
Here is an overview of all of the models and how they are related: