get object or 404 for view without Q