You can do this in one query: `GroupRelationships.objects.get(group__id=group_id)`.