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.
작업 분류 (Category)
작업 내용 (Content)
recipes.admin.RecipeAdmin.search_fields에서 ingredient__name 을 ingredients__name으로 수정
url 파라미터 q=unneeded_amount&n=[int]로 추천 구분/ n값이 없으면 현재 가진 재료로 요리가 가능한 레시피 추천
recipes.views의 120번째 줄에서 filter의 값을 ingredients__in=user_ingredients로 유저가 가진 재료 pk와 겹치는 레시피 재료의 pk를 구해 이를 활용 / n값이 있으면 serialize를 달리 하기 위해 recipes.serialzers에 새로운 시리얼라이저 추가
모델 Recipe의 필드를 추가하여 구현 / recipes.serializers.RecipeSerializer의 내용을 추가하여 구현
views에서 좋아요가 눌리면 Notification 모델 인스턴스 생성, 좋아요 취소할 경우 인스턴스 제거
기타 사항 (Etc)
레시피 추천에서 쿼리를 최대한 줄이고 싶은데 여기서 더 줄일 수 있는 방법을 모르겠습니다 :(
Merge 전 필요 작업 (Checklist before merge)
희망 리뷰 완료 일 (Expected due date)
202X.X.X. Wed
2022.11.04