Created
May 16, 2017 00:39
-
-
Save KTruong008/9112c2547df9f9efd6d03282cc7260ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def perform_create(self, serializer): | |
deck = None | |
try: | |
from IPython import embed; embed(); | |
deck = Deck.objects.get(pk=self.request.data.get(‘deck’, {}).get(‘id’, None)) | |
except Deck.DoesNotExist: | |
pass | |
… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment