Fix call to 'get_object_or_404'.