George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05: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
Axel Haustant
2bfb195ad6
Document FieldDoesNotExist and meta.strict
2015-04-13 18:07:48 +02:00
David Bordeynik
3234f0bdd7
Merge pull request #887 from rutsky/patch-2
...
fix reference format: "attr:`auto_create_index`"
2015-02-20 22:18:39 +02:00
Vladimir Rutsky
4ae60da58d
fix reference format: "attr:auto_create_index
"
2015-02-20 19:59:36 +03:00
Matthew Ellison
42721628eb
Added EmbeddedDocumentListField Implementation
...
- Added new field type: EmbeddedDocumentListField.
- Provides additional query ability for lists of embedded documents.
- Closes MongoEngine/mongoengine#503 .
2015-02-20 11:18:40 -05:00
Matthew Ellison
db36d0a375
Ensure Indexes before Each Save
...
- Rely on caching within the PyMongo driver to provide lightweight calls
while indices are cached.
- Closes MongoEngine/mongoengine#812 .
2014-12-04 08:45:15 -05:00
Wilson Júnior
8485b12102
Merge pull request #821 from 3lnc/Document.switch_docstring_fix
...
Fixes #811 . Fixes reflinks
2014-12-04 09:28:11 -02:00
Slam
51f314e907
Doc fixes, thanks @3Inc
...
Author: Slam <3lnc.slam@gmail.com>
Date: Fri Nov 28 13:10:38 2014 +0200
2014-12-02 00:37:06 -02:00
Wilson Júnior
74a89223c0
replaced text_score
attribute to get_text_score
method
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:09:26 -02:00
Slam
2954017836
Fixes #811 . Fixes reflinks
2014-11-30 00:23:40 +02:00
Slam
e0f1e79e6a
Minor typos fixes in docs
2014-11-24 16:57:43 +02:00
André Ericson
3569529a84
Fix KeyError on reload() from a DynamicDocument
...
If the document is in memory and a field is deleted from the db,
calling reload() would raise a KeyError.
2014-11-08 19:11:51 -03:00
Dmitry Konishchev
4752f9aa37
Add Document.modify() method
2014-09-30 15:30:01 +04:00
DavidBord
c1b202c119
fix-#746: Stop ensure_indexes running on a secondaries unless connection is through mongos
2014-08-24 10:48:54 +03:00
Wilson Júnior
f7ebf8dedd
Added support for text search and text_score.
2014-07-07 20:24:37 -03:00
Ross Lawley
324e3972a6
Merge pull request #567 from tomprimozic/master
...
Implemented equality between Documents and DBRefs
2014-06-27 11:37:24 +01:00
Ross Lawley
9cc4359c04
Added the ability to reload specific document fields #100
2014-06-27 11:10:14 +01:00
Ross Lawley
cb8cd03852
Merge pull request #594 from idlead/feature/post_save_delta
...
post_save signal should have delta information about field changes #594 #589
2014-06-27 10:02:08 +01:00