Fix error in the sample code

`get_or_create()` returns a tuple `(object, was_created)` that the code doesn't consider
Merge remote-tracking branch 'upstream/master'