test reference to a custom pk doc
Merge remote-tracking branch 'origin/pr/317'
Fixed querying ReferenceField custom_id (#317)