Skip to content

Instantly share code, notes, and snippets.

@kalda341
Created December 14, 2018 02:24
Show Gist options
  • Save kalda341/2a7c34215ae22a82b340519daa04f243 to your computer and use it in GitHub Desktop.
Save kalda341/2a7c34215ae22a82b340519daa04f243 to your computer and use it in GitHub Desktop.
# 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