Extract model pk before postprocessors are called

This prevents problems when the pk field is renamed, removed or moved to a nested dict in a postprocessor.
This is punishment for writing a PR in the github editor :-)
Merge pull request #241 from joostdevries/master

Extract model pk before postprocessors are called