feat: 구매 고민 입력 폼 구현 - #12
Open
jiyeoniii wants to merge 1 commit into
Open
Conversation
docs/API.md §5.1 구현입니다. 상품명·가격을 사용자가 직접 입력합니다. - ConsiderationForm 추가 — 가격 1원 이상, 카테고리 최대 3개, purpose=ETC일 때 purpose_detail 필수, 비활성 카테고리 선택 불가 - ConsiderationCreateView 추가 (LoginRequiredMixin + CreateView) - 페이지/JSON API URL 분리 (§2.2) — config/api_urls.py 신설, 기존 /api/accounts/... 경로와 reverse 이름은 그대로 유지 - MAX_CATEGORY_SELECTION, LOGIN_URL 설정 추가 - price_input.js — 입력 중 천 단위 구분 기호 표시와 한글 금액 되읽기, 제출 시 정수로 변환 - 폼 검증 규칙 테스트 10개 추가 성공 시 리다이렉트 대상인 대안 생성 페이지는 아직 없어 URL 이름 대신 경로를 직접 사용합니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 작업 내용
docs/API.md §5.1 구현
상품명, 가격을 사용자가 직접 입력
성공 시 리다이렉트 대상인 대안 생성 페이지는 아직 없어 URL 이름 대신 경로를 직접 사용
✅ 체크리스트
💬 리뷰 요청 사항
/alternatives/considerations/<id>/로 보내는데 alternatives 페이지가 없어서, URL 이름 대신 경로를 직접 썼습니다. 해당 작업 때reverse()로 바꿔주세요!/admin/으로 로그인 후/products/considerations/new/로 가야 합니다.static/css/consideration_form.css는 최소 스타일만 넣은 신규 파일입니다. FE 디자인에 맞춰 자유롭게 교체해주세요!!products/api_urls.py는 §5.3(비교 기준 변경 PATCH)용 빈 스텁입니다.📷 스크린샷