used method get_object_or_404 instead of plain Object.objects.get