Skip to content

Conversation

@iici-gli
Copy link
Contributor

Add code to detect '-1' as a integer.
Normalize negative index to regular list index
Added list assignment test case

Review on Reviewable

Add code to detect '-1' as a integer.
Normalize negative index to regular list index
Added list assignment test case
…changing database

This resolved issue Please recall fix on: Saving document doesn't create new fields in existing collection MongoEngine#620 MongoEngine#1126
@DavidBord
Copy link
Contributor

Nice!
@iici-gli, test_default_values in tests/document/instance.py keeps failing, could you please fix this?
In addition, please document your change in changelog.rst and yourself in AUTHORS

@iici-gli
Copy link
Contributor Author

Updated the test case, and add example code to alter database for new field with default

@DavidBord
Copy link
Contributor

@iici-gli, something is wrong with AUTHORS - please make sure there are no extra changes there besides your addition
In addition, there is a merge conflict so please rebase

@DavidBord
Copy link
Contributor

@iici-gli hoefully one last request :) - please squash your commits

@iici-gli
Copy link
Contributor Author

iici-gli commented Nov 1, 2015

'squash your commits'? How do I do it?

@iici-gli iici-gli closed this Sep 4, 2016
@iici-gli iici-gli reopened this Sep 4, 2016
@iici-gli
Copy link
Contributor Author

iici-gli commented Sep 5, 2016

Add new mark changed fix

pull new changes from original
@lafrech
Copy link
Member

lafrech commented Sep 6, 2016

I don't think the git squash should be a blocker. The PR was reviewed already so I'm about to merge it.

@iici-gli added another commit, unrelated to the PR. Please don't do that but open a PR per change. Anyway, this commit makes sense, so in the end I don't mind merging this PR including the new unrelated commit.

@MongoEngine/mongoengine, any objection?

…e#1217

The new fix reverted the change on BaseField to_mongo so that it will not force
new field class to add kwargs to to_mongo function. The new derived field class
to_mongo can support use_db_field and fields parameters as needed.
Basically all field classes derived from ComplexBaseField support those parameters.
@lafrech lafrech merged commit 05e40e5 into MongoEngine:master Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants