Added get_or_404 in report view.