Wilson Júnior
73549a9044
fixes for rebase branch
2014-07-17 09:41:06 -03:00
Wilson Júnior
30fdd3e184
Added initial CachedReferenceField
2014-07-16 10:32:43 -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
Serge Chmelev
c63f43854b
Fix setting of _created flag in base.Document constructor
2014-07-03 01:48:19 +04:00
Serge Chmelev
5cc71ec2ad
Fix for post_init signal to receive correct state of _created flag.
2014-07-03 01:48:19 +04:00
Omer Katz
80e81f8475
Python 2.6 requires positioning by number of fragments in format.
...
This commit will restore Python 2.6 compatability.
2014-07-02 23:22:06 +03:00
Ross Lawley
bcc6d25e21
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-06-30 10:30:12 +01:00
Ross Lawley
7b885ee0d3
Fix StrictDict repr
2014-06-30 10:29:28 +01:00
Brian Helba
17d6014bf1
Fix some minor spelling and grammar in documentation
2014-06-29 23:07:28 -04: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
1bd83cc9bc
Merge branch 'master' into pr/675
2014-06-27 12:48:28 +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
51b197888c
Merge remote-tracking branch 'origin/master'
2014-06-27 09:10:40 +01:00
Ross Lawley
cd63865d31
Fix clear_changed_fields() clearing unsaved documents bug #602
2014-06-27 09:08:07 +01:00
Yohan Graterol
76b2f25d46
Merge pull request #557 from SpotOnInc/recursive_embedded_errors_fix
...
Fixes issue with recursive embedded document errors
2014-06-26 21:55:49 -05:00
Yohan Graterol
a778a91106
Merge pull request #584 from FrankSomething/consistent-inits
...
inherit parent Document type _auto_id_field value
2014-06-26 11:24:13 -05:00
Ross Lawley
bc66fb33e9
Merge branch 'master' into pr/625
2014-06-26 16:48:12 +01:00
Ross Lawley
1d189f239b
Merge branch 'pr/562'
2014-06-26 16:42:23 +01:00
Ross Lawley
d1d5972277
Removed support for old versions
...
- Removing support for Django 1.4.x, pymongo 2.5.x, pymongo 2.6.x.
- Removing support for Python < 2.6.6
2014-06-26 16:34:02 +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
Clay McClure
07442a6f84
Allow index specs to be composed from raw strings
...
This allows an index spec to reference arbitrary keys of a DictField:
class MyDoc(Document):
frobs = DictField()
meta = {
"indexes": ["frobs.fmep", "frobs.gorp"],
}
2014-05-28 01:31:35 -04:00
Damien Churchill
1877cacf9c
fix modifying slices under python3
2014-03-12 19:49:43 +00: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
88247a3af9
Bugfix for weakref _instance bug.
2014-03-03 15:11:05 +00:00
Frank Battaglia
9d125c9e79
inherit parent Document type _auto_id_field value
2014-02-24 11:10:02 -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
b085993901
Allow dynamic dictionary-style field access
...
Allows the doc[key] syntax to work for dynamicembeddeddocument fields
Fixes #559
2014-01-27 23:05:29 +00:00
Andrei Zbikowski
0d4afad342
Fixes issue with recursive embedded document errors
2014-01-24 16:54:29 -06:00
Damien Churchill
2f6890c78a
fix for nested MapFields
...
When using nested MapFields from a document loaded from the database, the
nested dictionaries aren't converted to BaseDict, so changes aren't
marked.
This also includes a change when marking a field as changed to ensure that
nested fields aren't included in a $set query if a parent is already marked
as changed. Not sure if this could occur but it prevents breakage if it does.
2013-12-16 13:44:07 +00:00
Ross Lawley
16dcf78cab
Ensure id is Hashable
2013-12-02 14:14:46 +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
06caabf333
Import fix
2013-11-29 11:53:24 +00:00
Ross Lawley
954131bd51
Merge remote-tracking branch 'origin/pr/496'
2013-11-29 11:49:54 +00:00
Ross Lawley
6465726008
Fix handling invalid dict field value ( #485 )
2013-11-29 10:33:36 +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
Loic Raucy
9ed138f896
Fixed bug with numeric valuedict keys and BaseDocument._lookup_field().
2013-10-17 16:32:47 +02:00
Ross Lawley
5bcc454678
Handle dynamic fieldnames that look like digits ( #434 )
2013-08-07 09:07:57 +00:00
Ross Lawley
0c43787996
Fixed indexing - turn off _cls ( #414 )
2013-07-30 11:43:52 +00:00
Ross Lawley
f1b1090263
Merge remote-tracking branch 'origin/pr/412' into 412
...
Conflicts:
AUTHORS
2013-07-30 10:32:07 +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
67f43b2aad
Allow args and kwargs to be passed through to_json ( #420 )
2013-07-29 15:29:48 +00:00
Paul Uithol
e27439be6a
Fix BaseDocument._delta
when working with plain ObjectIds instead of DBRefs
2013-07-25 14:52:03 +02:00
Thom Knowles
80b3df8953
dereference instance not thread-safe
2013-07-22 20:07:57 -04:00
Ross Lawley
d593f7e04b
Fixed EmbeddedDocuments with id
also storing _id
( #402 )
2013-07-11 08:11:00 +00:00