Couldn't this method be replaced with `get_object_or_404(company.partner_set, id=partner_id)` or similar?