However, this breaks POSTing to this view, as the post handler tries to get the pk from the database object after inserting.
File "flask_restless/views.py", line 1390, in post
primary_key = result[pk_name]
I was going to submit a failing unit test, but upon further thinking it actually makes sense that this doesn't work. After all, how should a client know which instance it created if the response may not contain the id?
So I guess, it would just be useful to add a hint to the docs explaining this. Something like "Make sure the primary key field is included if you intend to allow POST".
The text was updated successfully, but these errors were encountered: