Commit 22a482a65c6eead39850f9a513b3ce4fa9a1c616

Authored by Andrew Buss
1 parent a222348da7
Exists in master

pull a card that a user pushes

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

flashcards/views.py View file @ 22a482a
... ... @@ -276,6 +276,7 @@
276 276 self.perform_create(flashcard)
277 277 notify_new_card(flashcard)
278 278 headers = self.get_success_headers(data)
  279 + request.user.pull(flashcard)
279 280 response_data = FlashcardSerializer(flashcard).data
280 281  
281 282 return Response(response_data, status=HTTP_201_CREATED, headers=headers)