replaced all_related with related_objects