From 22a482a65c6eead39850f9a513b3ce4fa9a1c616 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Thu, 21 May 2015 14:12:01 -0700 Subject: [PATCH] pull a card that a user pushes --- flashcards/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flashcards/views.py b/flashcards/views.py index 561474d..4eb005f 100644 --- a/flashcards/views.py +++ b/flashcards/views.py @@ -276,6 +276,7 @@ class FlashcardViewSet(GenericViewSet, CreateModelMixin, RetrieveModelMixin): self.perform_create(flashcard) notify_new_card(flashcard) headers = self.get_success_headers(data) + request.user.pull(flashcard) response_data = FlashcardSerializer(flashcard).data return Response(response_data, status=HTTP_201_CREATED, headers=headers) -- 1.9.1