Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7th Assignment Submission #74

Open
wants to merge 1 commit into
base: uzin
Choose a base branch
from

Conversation

Joeyoojin
Copy link

No description provided.

return Response({"detail": "Authentication credentials not provided"}, status=status.HTTP_401_UNAUTHORIZED)

try:
comment = Comment.objects.get(id=comment_id)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳굳 comment_id를 이미 path parameter에서 받아왔기 때문에(55line) comment_id를 다시 불러올 필요 없이 쓰면 됩니다!

return Response({"detail": "missing fields ['content']"}, status=status.HTTP_400_BAD_REQUEST)

serializer = CommentSerializer(comment, data=request.data, partial=True)
if not serializer.is_valid():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유효성검사 👍

Copy link

@syrius527 syrius527 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~~
다음에도 꼭 복습해보기!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants