Dmitry Konishchev
bc9aff8c60
Merge remote-tracking branch 'upstream/master' into pr-document-modify
2014-11-02 17:24:51 +03:00
David Czarnecki
4b498ae8cd
Fix the documentation for reverse_delete_rule.
2014-10-31 11:40:20 -04:00
DavidBord
9a4aef0358
fix-#789: abstract shouldn't be inherited in EmbeddedDocument
2014-10-29 13:36:42 +02:00
Dmitry Konishchev
5d2ca6493d
Drop unnecessary id=ObjectId() in document creation
2014-10-01 12:38:41 +04:00
Dmitry Konishchev
4752f9aa37
Add Document.modify() method
2014-09-30 15:30:01 +04:00
Vjacheslav Murashkin
7430b31697
handle None from model __str__; Fixes #753
2014-09-04 16:54:23 +04:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +03:00
DavidBord
46da918dbe
fix-#733: index_cls is ignored when deciding to set _cls as index prefix
2014-08-17 11:19:18 +03:00
DavidBord
1e6a3163af
fix-#620: saving document doesn't create new fields in existing collection
2014-08-05 17:29:14 +03:00
DavidBord
e008919978
fix-#399: Not overriding default values when loading a subset of fields
2014-08-05 14:34:54 +03:00
Norberto
e81b09b9aa
adding capability to extract json (to_json) using the field names and instead of the defined db_names, if those are set
2014-07-06 20:49:19 +02:00
Bruno Rocha
99e943c365
Updates with no operator should default to $set Fix #667
2014-07-02 14:39:29 -03:00
Clay McClure
74bd7c3744
Include preliminary support for text indexes
...
To index a text field, prefix the field name with `$`, as in `$title`.
2014-06-27 14:48:32 -04:00
Ross Lawley
94e177c0ef
Allow strings to be used in index creation #677
2014-06-27 12:49:31 +01:00
Ross Lawley
8f972a965d
Merge branch 'master' into pr/592
2014-06-27 12:36:39 +01:00
Ross Lawley
5d0cab2052
Merge branch 'master' into pr/539
...
Conflicts:
mongoengine/base/datastructures.py
2014-06-27 12:20:44 +01:00
Ross Lawley
fc9d99080f
Merge branch 'master' into pr/507
...
Conflicts:
tests/document/dynamic.py
2014-06-27 12:06:18 +01: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
de9ba12779
Turn on tests
2014-06-27 11:16:23 +01:00
Ross Lawley
9cc4359c04
Added the ability to reload specific document fields #100
2014-06-27 11:10:14 +01:00
Ross Lawley
8267ded7ec
Merge branch 'master' into pr/636
2014-06-27 09:29:19 +01:00
Martyn Smith
5be5685a09
Test to illustrate failure in changed attribute tracking
2014-06-27 09:06:17 +01:00
Ross Lawley
1d189f239b
Merge branch 'pr/562'
2014-06-26 16:42:23 +01:00
Ross Lawley
5b90691bcc
Merge branch 'master' into pr/585
2014-06-26 16:41:27 +01:00
Ross Lawley
dd51589f67
Updates
2014-06-26 16:02:40 +01:00
Yohan Graterol
a70dbac0e6
Merge pull request #626 from KonishchevDmitry/pr-not-unique-error-on-update
...
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-06-25 10:18:09 -05:00
Stefan Wojcik
abcacc82f3
dont use a system collection
2014-05-21 22:21:46 -07:00
Ronald van Rij
9544b7d968
Fixed unit test which used assertIsNotNone
2014-05-09 14:33:18 +02: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
Dmitry Konishchev
b45a601ad2
Test raising NotUniqueError by Document.update()
2014-04-15 19:32:42 +04:00
Damien Churchill
db7f93cff3
improved update queries for BaseDict & BaseList
...
Migrate changes to include updating single elements of ListFields as
well as MapFields by adding the same changes to BaseList. This is
done by ensuring all BaseDicts and BaseLists have the correct name
from the base of the nearest (Embedded)Document, then marking changes
with their key or index when they are changed.
Tests also all fixed up.
2014-03-12 15:07:40 +00:00
tprimozi
158578a406
Added test that fails due to weakref _instance bug.
2014-03-03 15:10:35 +00:00
Frank Battaglia
86363986fc
whitespace
2014-02-24 11:04:29 -05:00
Frank Battaglia
0a2dbbc58b
add tests for mongo query operators
2014-02-24 11:03:50 -05:00
Frank Battaglia
673a966541
add tests for save_condition kwarg in document.save()
2014-02-24 11:02:37 -05:00
tprimozi
0523c2ea4b
Fixed document equality: documents in different collections can have equal ids.
2014-02-13 18:12:33 +00:00
tprimozi
c5c7378c63
Implemented equality between Documents and DBRefs
2014-02-04 13:41:17 +00:00
Brian J. Dowling
9b2080d036
Added a test for allowing dynamic dictionary-style field access
...
Closes #559
2014-01-28 22:10:26 -05:00
Ross Lawley
6d5e7d9e81
Calling reload on deleted / nonexistant documents raises DoesNotExist ( #538 )
2014-01-24 14:10:55 +00:00
Ross Lawley
708dbac70e
Depending on pymongo it might raise a TypeError or ValueError
2014-01-14 10:09:11 +00:00
Ross Lawley
d868cfdeb0
Fix multi level nested fields getting marked as changed ( #523 )
2013-11-29 16:24:32 +00:00
Ross Lawley
b024dd913d
EmbeddedDocument._instance is now set when settng the attribute ( #506 )
2013-11-29 13:09:11 +00:00
Ross Lawley
a2a698ab0e
Fixed EmbeddedDocument with ReferenceField equality issue ( #502 )
2013-11-29 12:46:18 +00:00
Eric Plumb
857cd718df
Fix for issue #425 - allow undeclared fields in an embedded dynamic document to be seen by queryset methods
2013-11-08 14:57:35 -08:00
Ross Lawley
0c43787996
Fixed indexing - turn off _cls ( #414 )
2013-07-30 11:43:52 +00:00
Ross Lawley
1e4d48d371
Don't follow references in _get_changed_fields ( #422 , #417 )
...
A better fix so we dont follow down a references rabbit hole.
2013-07-29 17:22:24 +00:00
Ross Lawley
a66d516777
Merge pull request #417 from ProgressiveCompany/delta-dbref-false-bug
...
BaseDocument._delta doesn't properly end it's path at Documents when using `dbref=False`
2013-07-29 08:41:09 -07:00
Ross Lawley
7a97d42338
to_json test updates #420
2013-07-29 15:38:08 +00:00
Paul Uithol
d143e50238
Replace assertIn
with an assertTrue
; apparently missing in Python 2.6
2013-07-25 15:34:58 +02:00
Paul Uithol
2ad5ffbda2
Add asserts to test_delta_with_dbref_*
, instead of relying on exceptions
2013-07-25 14:51:09 +02:00