changing some model.objects.get to get_object_or_404