lanf0n
24d15d4274
fix typo in the save() method's docstring ( #1551 )
2017-05-11 10:06:36 -04:00
Stefan Wojcik
2cf23e33e3
Document._get_update_doc helper method
2017-05-07 19:26:10 -04:00
Stefan Wójcik
de18e256ce
clean up the Document._get_collection code ( #1540 )
2017-04-30 14:35:33 -04:00
Stefan Wójcik
1a3c70ce1b
make EmbeddedDocument not hashable by default ( #1528 )
2017-04-30 13:30:21 -04:00
Stefan Wójcik
ebd34427c7
Cleaner Document.save ( #1458 )
2016-12-30 05:43:56 -05:00
Stefan Wójcik
91dad4060f
raise an error when trying to save an abstract document ( #1449 )
2016-12-28 00:51:47 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Ollie Ford
d8d98b6143
Support Falsey primary_key
s ( #1354 )
2016-12-03 16:10:05 -05:00
Stefan Wójcik
3c455cf1c1
Improve health of this package ( #1409 )
...
* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -05:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
adce9e6220
Raise OperationError in drop_collection if no collection is set
2016-02-19 01:58:15 +01:00
Emmanuel Leblond
b320064418
Add signal_kwargs arg for save/delete/bulk insert
2016-02-09 14:28:55 +01:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
Omer Katz
007f10d29d
Merge pull request #1161 from AWhetter/docFix
...
Fixed a couple of documentation typos
2015-11-24 07:01:49 +02:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Ashley Whetter
cceef33fef
Fixed a couple of documentation typos
2015-11-17 14:22:10 +00:00
Paul-Armand Verhaegen
6e745e9882
fixed wrong indentation style
2015-11-10 21:13:24 +01:00
Paul-Armand Verhaegen
fb4e9c3772
fix for reloading of strict with special fields
2015-11-10 20:43:49 +01:00
Catstyle
a6a1021521
use obj._data instead of self._fields_ordered since DynamicDocument missing some attributes
2015-09-02 18:42:30 +02:00
Momchil Rogelov
b4ce14d744
use n instead of nModified in save_condition
2015-08-13 10:11:42 +01:00
Momchil Rogelov
10832a2ccc
save_condition falls back to "n" if "nModified" is not found to support mongo 2.4
2015-08-12 10:57:20 +01:00
Emmanuel Leblond
0752c6b24f
Update changelog for #1070
2015-07-19 10:33:54 +02:00
Emmanuel Leblond
a3e0fbd606
Add SaveConditionError exception
2015-07-15 11:15:40 +02:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +02:00
mrigal
778c7dc5f2
general pep8 and more clean-up
2015-06-23 23:15:44 +02:00
Breeze.kay
41bff0b293
remove testcase:test_signals_with_switch_sharding_db() and fix code style error for pull#1020
2015-06-21 09:32:31 +08:00
Breeze.kay
dfc7f35ef1
add testcase and changelog for pull:#1020 'improve _created status when switch collection and db'
2015-06-19 15:40:05 +08:00
Breeze.kay
0bbbbdde80
Merge remote-tracking branch 'MongoEngine/master'
2015-06-19 11:14:51 +08:00
Matthieu Rigal
1bcd675ead
Python 3 fix, uses floor division
2015-06-15 13:44:11 +02:00
Matthieu Rigal
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Matthieu Rigal
3093175f54
SequenceField for abstract classes now have a proper name
2015-06-12 11:03:52 +02:00
mrigal
2e96302336
not in fix
2015-06-11 22:47:10 +02:00
mrigal
1862bcf867
added test for abstract document without pk creation and adapted behaviour
2015-06-11 22:47:10 +02:00
Emmanuel Leblond
4034ab4182
Clean save_condition exception implementation and related tests
2015-06-11 14:30:10 +02:00
Emmanuel Leblond
682db9b81f
Add versionchanged to document save_condition
2015-06-11 14:29:42 +02:00
Emmanuel Leblond
3e000f9be1
Raise error if save_condition fails #991
2015-06-11 14:29:42 +02:00
Matthieu Rigal
548a552638
Merge pull request #994 from MRigal/fix/cls-index-at-desired-position
...
Added hashed index, a bit more of geo-indexes, possibility to give _cls
2015-06-11 14:20:01 +02:00
Breeze.kay
ab2ef69c6a
improve _created status when switch collection and db
2015-06-03 18:13:54 +08:00
Charanpal Dhanjal
fc140d04ef
Fix comment in delete
2015-06-02 10:15:27 +01:00
Matthieu Rigal
f35d0b2b37
Added create_index method, warnings for drop_dups and a geohaystack test
2015-06-01 23:12:43 +02:00
Matthieu Rigal
283e92d55d
Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs
2015-06-01 22:11:21 +02:00
Charanpal
2753e02cda
Fix for case where Document is deleted and it's files (FieldFields) in GridFS remain.
2015-05-23 14:46:56 +01:00
mrigal
c5ed308ea5
comments update after having tested PyMongo 3.0.1
2015-05-07 12:47:31 +02:00
mrigal
571a7dc42d
Fix last issue with binary field as primary key and skipped new test
2015-05-07 12:47:30 +02:00
mrigal
76adb13a64
Minor text and comments enhancements
2015-05-07 12:47:30 +02:00
mrigal
3db896c4e2
work-around for pymongo 3 bug
2015-05-07 12:47:30 +02:00
mrigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal
ccbd128fa2
first adaptations after comments and find-outs
2015-05-07 12:47:29 +02:00
mrigal
775c8624d4
change to try to address issues due to new save() behaviour, not satisfying, some tests are still failing
2015-05-07 12:47:29 +02:00
Stefan Wojcik
9bdc320cf8
dont send a "cls" option to ensureIndex (related to https://jira.mongodb.org/browse/SERVER-769 )
2015-05-06 11:25:45 +02:00