Skip to content

Commit

Permalink
Merge ded6826 into 46884a8
Browse files Browse the repository at this point in the history
  • Loading branch information
a-braham committed Jun 24, 2019
2 parents 46884a8 + ded6826 commit 4193320
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions authors/apps/appnotifications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def update(self, request, *args, **kwargs):
serializer.is_valid(raise_exception=True)
serializer.save()
return Response(serializer.data, status=status.HTTP_200_OK)

def get(self, request, *args, **kwargs):
user = UserNotification.objects.get(user=request.user)
if user:
serializer = self.serializer_class(user, many=False)
print(serializer.data)
return Response(serializer.data, status=status.HTTP_200_OK)


class UnsubscribeEmailAPIView(GenericAPIView):
Expand Down

0 comments on commit 4193320

Please sign in to comment.