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
Ross Lawley
8267ded7ec
Merge branch 'master' into pr/636
2014-06-27 09:29:19 +01:00
Ross Lawley
bc66fb33e9
Merge branch 'master' into pr/625
2014-06-26 16:48:12 +01:00
Sagiv Malihi
9835b382da
added __slots__ to BaseDocument and Document
...
changed the _data field to static key-value mapping instead of hash table
This implements #624
2014-06-10 16:11:27 +03:00
Ronald van Rij
babbc8bcd6
When using autogenerated document ids in a sharded collection, do set that id back into the Document
2014-05-06 09:34:16 +02:00
Vlad Zloteanu
ef55e6d476
fixes MongoEngine/mongoengine#589
2014-03-01 17:51:59 +01:00
Frank Battaglia
db1e69813b
add atomic conditions to save
...
Conflicts:
mongoengine/document.py
2014-02-24 10:57:32 -05:00
tprimozi
c5c7378c63
Implemented equality between Documents and DBRefs
2014-02-04 13:41:17 +00:00
Ross Lawley
6d5e7d9e81
Calling reload on deleted / nonexistant documents raises DoesNotExist ( #538 )
2014-01-24 14:10:55 +00:00
Ross Lawley
0277062693
Stop ensure_indexes running on a secondaries ( #555 )
2014-01-24 13:17:52 +00:00
Ross Lawley
1b62dd5c40
Fix duplicate error check
2014-01-14 10:01:39 +00:00
Ross Lawley
a2a698ab0e
Fixed EmbeddedDocument with ReferenceField equality issue ( #502 )
2013-11-29 12:46:18 +00:00
Olivier Cortès
f30208f345
Fix the ._get_db() attribute after a Document.switch_db()
...
Without this patch, I've got:
```
myobj._get_db()
<bound method TopLevelDocumentMetaclass._get_db of <class 'oneflow.core.models.nonrel.Article'>>
```
I need to `myobj._get_db()()` to get the database.
I felt this like a bug.
regards,
2013-08-12 19:12:53 +02:00
Ross Lawley
0c43787996
Fixed indexing - turn off _cls ( #414 )
2013-07-30 11:43:52 +00:00
Ross Lawley
4209d61b13
Document.select_related() now respects db_alias
( #377 )
2013-07-10 12:49:19 +00:00
Ross Lawley
fa83fba637
Reload uses shard_key if applicable ( #384 )
2013-07-10 11:18:49 +00:00
Ross Lawley
af86aee970
_dynamic field updates - fixed pickling and creation order
...
Dynamic fields are ordered based on creation and stored in _fields_ordered (#396 )
Fixed pickling dynamic documents `_dynamic_fields` (#387 )
2013-07-10 10:57:24 +00:00
Ross Lawley
9867e918fa
Fixed weakref being valid after reload ( #374 )
2013-06-21 11:04:29 +00:00
Ross Lawley
f1a1aa54d8
Added full_result kwarg to update ( #380 )
2013-06-21 10:19:40 +00:00
Ross Lawley
254efdde79
Merge remote-tracking branch 'origin/pr/364' into 364
2013-06-07 08:25:42 +00:00
Stefan Wojcik
ba7101ff92
list_indexes support for multiple inheritance
2013-06-06 22:22:43 -07:00
Stefan Wojcik
a2457df45e
make sure to only search for indexes in base classes inheriting from TopLevelDocumentMetaclass
2013-06-06 19:14:21 -07:00
Stefan Wojcik
305540f0fd
better comment
2013-06-06 17:21:27 -07:00
Stefan Wojcik
c2928d8a57
list_indexes and compare_indexes class methods + unit tests
2013-06-06 17:16:03 -07:00
Ross Lawley
7451244cd2
Fixed cascading saves which weren't turned off as planned ( #291 )
2013-06-06 21:04:54 +00:00
Ross Lawley
dc3b09c218
Improved cascading saves write performance ( #361 )
2013-06-06 16:36:17 +00:00
Ross Lawley
ad15781d8f
Fixed amibiguity and differing behaviour regarding field defaults ( #349 )
...
Now field defaults are king, unsetting or setting to None on a field
with a default means the default is reapplied.
2013-06-06 13:31:52 +00:00
Ross Lawley
5cb2812231
Reverting Fixed hashing of EmbeddedDocuments ( #348 )
2013-06-05 13:03:15 +00:00
Ross Lawley
f8904a5504
Explicitly set w:1 if None in save
2013-06-05 12:14:22 +00:00
Ross Lawley
eeb5a83e98
Added lock when calling doc.Delete() for when signals have no sender ( #350 )
2013-06-04 16:35:25 +00:00
Ross Lawley
d47134bbf1
Reload forces read preference to be PRIMARY ( #355 )
2013-06-04 11:03:50 +00:00
Ross Lawley
4244e7569b
Added pre_save_post_validation signal ( #345 )
2013-06-04 09:35:44 +00:00
Alice Bevan-McGregor
04592c876b
Moved pre_save after validation and determination of creation state; added pre_save_validation where pre_save had been.
2013-05-29 12:04:53 -04:00
Daniel Axtens
36a3770673
If you need to read from another database, use switch_db not switch_collection.
2013-05-20 15:49:01 +10:00
Ross Lawley
2c119dea47
Upserting is the only way to ensure docs are saved correctly ( #306 )
2013-05-07 10:34:13 +00:00
Ross Lawley
e58b3390aa
Removed import with from future
2013-05-01 08:48:14 +00:00
Ross Lawley
9c1cd81adb
Add support for new geojson fields, indexes and queries ( #299 )
2013-04-30 14:46:23 +00:00
Ross Lawley
5e65d27832
PEP8 x == True should be x is True
2013-04-26 11:46:12 +00:00
Ross Lawley
7765f272ac
Documentation api and reference cleanups
2013-04-26 08:46:46 +00:00
Ross Lawley
fe62c3aacb
Cascading saves now default to off ( #291 )
2013-04-25 10:24:33 +00:00
Ross Lawley
c16e6d74e6
Updated connection to use MongoClient ( #262 , #274 )
2013-04-22 15:07:15 +00:00
Ross Lawley
51e50bf0a9
Merge branch 'master' into 0.8M
...
Conflicts:
AUTHORS
docs/django.rst
mongoengine/base.py
mongoengine/queryset.py
tests/fields/fields.py
tests/queryset/queryset.py
tests/test_dereference.py
tests/test_document.py
2013-04-17 11:57:53 +00:00
Ross Lawley
f970d5878a
Merge remote-tracking branch 'origin/pr/242'
...
Conflicts:
tests/test_document.py
2013-04-16 20:07:03 +00:00
Ross Lawley
37740dc010
Added kwargs to doc.save to help interop with django ( #223 , #270 )
2013-04-12 14:05:08 +00:00
benoitlouy
0d2e84b16b
Fix for issue #237 : clearing changed fields recursively in EmbeddedDocuments after saving a Document
2013-02-28 00:37:34 -05:00