Skip to content

Conversation

@KonishchevDmitry
Copy link
Contributor

At this time there is no way to determine whether an update failed due to non-unique field value in a document.

@lig
Copy link
Contributor

lig commented Apr 15, 2014

Looks fair. Will try to put tests onto this.

@lig lig added this to the 0.8.x milestone Apr 15, 2014
@KonishchevDmitry
Copy link
Contributor Author

@lig, I've added the test.

@yograterol
Copy link
Contributor

@KonishchevDmitry good job, 👍 code + test = merger ;)

yograterol added a commit that referenced this pull request Jun 25, 2014
…update

Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
@yograterol yograterol merged commit a70dbac into MongoEngine:master Jun 25, 2014
@yograterol yograterol modified the milestones: 0.9, 0.8.x Jun 25, 2014
@KonishchevDmitry KonishchevDmitry deleted the pr-not-unique-error-on-update branch June 25, 2014 19:06
rozza added a commit that referenced this pull request Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants