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

comment AllowAny & comment author_username / author_info #115

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yabsed
Copy link
Contributor

@yabsed yabsed commented Jul 26, 2022

Resolves #<issue No.1>, #<issue No.2> ...

해결/개선하고자 한 기능 설명

만인이 Q&A의 댓글을 볼 수 있게 -> AllowAny (임시조치)
댓글 작성자의 유저명을 볼 수 있게 -> author_username field
alarm을 끈 유저 -> GET /circle/{id}/user/{id}/alarm/에서 live_recruitment_alarm 필드 숨김

실제로 해결/개선한 방식

나중에 추가로 해결/개선해야하는 사항

UserViewSerializer의 공격적인 도입?

@@ -38,6 +41,9 @@ def get_author_id(self, obj):
def get_author_username(self, obj):
return obj.author.username

def get_author_info(self, obj):
return UserViewSerializer(obj.author).data

def get_comments_counts(self, obj):
print(type(obj.comments))
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기 print문이..!

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