Skip to content

add create post and update post method#30

Open
JinHoooooou wants to merge 4 commits intomainfrom
jinho-step2-create-and-update-post
Open

add create post and update post method#30
JinHoooooou wants to merge 4 commits intomainfrom
jinho-step2-create-and-update-post

Conversation

@JinHoooooou
Copy link
Contributor

  1. create_post method

    • 기존 djangogirls tutorial의 post_new method를 참고하여 작성
    • form.is_valid()가 false일때 response 추가
  2. update_post_with_put method

    • 기존 djangogirls tutorial의 post_edit method를 참고하여 작성
    • form.is_valid()가 false일때 response 추가
  3. 테스트

    • image
      통과

@JinHoooooou JinHoooooou changed the title Jinho step2 create and update post add create post and update post method Jul 6, 2021
Copy link
Contributor

Choose a reason for hiding this comment

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

NOT_FOUND 보단 BAD_REQUEST로 해야할것 같애(400) - 아래도 마찬가지

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

Comments