Skip to content
Snippets Groups Projects
Commit fc08cba8 authored by Kangmin Lee's avatar Kangmin Lee
Browse files

게시판 분류 추가

parent 101c0fff
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,13 @@ class UploadFeed(APIView): ...@@ -26,8 +26,13 @@ class UploadFeed(APIView):
user = User.objects.filter(Q(email = email)).first() user = User.objects.filter(Q(email = email)).first()
univ = user.univ univ = user.univ
type = request.data.get('type')
if type == 'photozone':
type = False
if type == 'scene':
type = True
Feed.objects.create(content=content, image=image, profile_image=profile_image, user_id=user_id, email=email, like_count=0, univ=univ) Feed.objects.create(content=content, image=image, profile_image=profile_image, user_id=user_id, email=email, like_count=0, view_count=0, type=type, univ=univ)
return Response(status=200) return Response(status=200)
class LikeFeed(APIView): class LikeFeed(APIView):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment