Skip to content

Conversation

@symoon9
Copy link
Contributor

@symoon9 symoon9 commented Jan 8, 2021

태그 기능을 일단 만들어두었습니다.

@symoon9 symoon9 self-assigned this Jan 8, 2021

if request.method == 'POST':
tag_name = request.data.get('tag_name')
if tag_name is None or '':
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 구문은 (tag_name is None) or '' 으로 tag_name이 None인 경우에 통과되고, 이외의 경우에는 if ''의 의미가 되어 blank를 구별할 수 없습니다.

@gyusang gyusang linked an issue Jan 8, 2021 that may be closed by this pull request
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.

Add Tag

3 participants