Skip to content

Commit

Permalink
fix: 이미지 생성 기능 serializer 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Euizzang8001 committed Aug 19, 2024
1 parent 2250096 commit 90a9f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KUA/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def post(self, request, *args, **kwargs):
"image": image_uploads[0], # 이미지를 직렬화할 데이터에 포함시킴
}

serializer = self.get_serializer(data=data)
serializer = serializers.ImageSerializer(data=data)
serializer.is_valid(raise_exception=True)
serializer.save() # 이미지를 포함하여 저장

Expand Down

0 comments on commit 90a9f4b

Please sign in to comment.