Created
December 14, 2018 02:24
-
-
Save kalda341/2a7c34215ae22a82b340519daa04f243 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Hack to get around the JSONAPI renderer using the pk field for the id | |
# We do the same thing for PUT requests in the update method on the serializer | |
if self.request.method == 'GET': | |
confirmation.pk = confirmation.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment