Ross Lawley
abbbd83729
Merge pull request #433 from reachveera/master
...
Overridden the prepare_query_value method in SequenceField inorder to re...
2014-06-27 11:49:28 +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
f31b2c4a79
Merge branch 'master' into pr/368
2014-06-27 11:32:19 +01:00
Ross Lawley
89b9b60e0c
Geo SON tweaks
2014-06-27 11:27:10 +01:00
Ross Lawley
9cc4359c04
Added the ability to reload specific document fields #100
2014-06-27 11:10:14 +01:00
Ross Lawley
b8353c4a33
Merge branch 'master' into pr/586
...
Conflicts:
mongoengine/queryset/base.py
tests/queryset/queryset.py
2014-06-27 10:06:30 +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
Stefan Wojcik
5e776a07dd
allow ordering to be cleared
2014-06-27 09:58:49 +01:00
Ross Lawley
8267ded7ec
Merge branch 'master' into pr/636
2014-06-27 09:29:19 +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
Ross Lawley
5c295fb9e3
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-06-26 19:25:35 +01:00
Ross Lawley
70651ce994
Fix as_pymongo bug
2014-06-26 19:24:52 +01: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
cfc31eead3
Fixed $maxDistance location for geoJSON $near queries with MongoDB 2.6+
...
Closes #664
2014-06-26 17:13:35 +01:00
Ross Lawley
bc66fb33e9
Merge branch 'master' into pr/625
2014-06-26 16:48:12 +01:00
Ross Lawley
b1b6493755
Merge branch 'pr/676'
2014-06-26 16:46:01 +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
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
Ross Lawley
bb1367cfb9
Merge branch 'master' into pr/674
2014-06-26 16:22:21 +01:00
Dmitry Konishchev
11724aa555
QuerySet.modify() method to provide find_and_modify() like behaviour
2014-06-26 16:18:42 +01:00
Yohan Graterol
364b0a7163
Merge pull request #591 from pavlov99/master
...
fix docstring for DictField
2014-06-25 22:52:07 -05:00
Yohan Graterol
d6419f2059
Merge pull request #613 from falcondai/master
...
minor change to geo-related docs
2014-06-25 10:44:36 -05:00
Yohan Graterol
6f7ad7ef91
Merge pull request #619 from polyrabbit/master
...
Fixed incorrectly split a query key, when it ends with "_"
2014-06-25 10:42:27 -05:00
Omer Katz
5ae588833b
Allowed to switch databases for a specific query.
2014-06-25 18:22:39 +03: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
Omer Katz
29309dac9a
Mongo clients with the same settings should be shared since they manage a connection pool.
...
Also, I removed old code that was supposed to support Pymongo<2.1 which we don't support anymore.
2014-06-25 16:53:24 +03:00
Jonathan Prates
7bb2fe128a
Added PR #657
2014-06-12 11:08:41 -03:00
Jonathan Prates
2312e17a8e
Merge remote-tracking branch 'elasticsales/clear-default-ordering'
2014-06-12 10:28:36 -03: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
Stefan Wojcik
1eacc6fbff
clear ordering via empty order_by
2014-05-30 15:08:03 -07:00
Jonathan Prates
819ff2a902
Renamed to has_data()
2014-05-29 14:36:30 -03:00
Jonathan Prates
c87801f0a9
Using first() from cloned queryset
2014-05-28 17:26:28 -03:00
Jonathan Prates
30964f65e4
Remove orderby in if stmt
2014-05-28 17:06:15 -03:00
Jonathan Prates
ee0c7fd8bf
Change for loop to self.first()
2014-05-28 13:21:00 -03:00
Jonathan Prates
dfdecef8e7
Fix py2 and py3
2014-05-28 09:40:22 -03:00
Jonathan Prates
edcdfeb057
Fix syntax error
2014-05-28 09:03:12 -03:00
Jonathan Prates
47f0de9836
Py3 fix
2014-05-28 08:36:57 -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
Jonathan Prates
3faf3c84be
Avoid to open all documents from cursors in an if stmt
...
Using a cursos in an if statement:
cursor = Collection.objects
if cursor:
(...)
Will open all documents, because there are not an __nonzero__ method.
This change check only one document (if present) and returns True or False.
2014-05-27 16:33:38 -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
Dmitry Konishchev
803caddbd4
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-04-09 14:25:53 +04:00
poly
4d7b988018
Fixed uncorrectly split a query key, when it ends with "_"
2014-04-01 19:52:21 +08:00
Falcon Dai
c1f88a4e14
minor change to geo-related docs
2014-03-17 22:29:53 -05:00
Damien Churchill
1877cacf9c
fix modifying slices under python3
2014-03-12 19:49:43 +00:00
Damien Churchill
2f4978cfea
Merge branch 'dateutil-bug-workaround'
2014-03-12 17:27:04 +00:00
Damien Churchill
d27a1103fa
workaround a dateutil bug
...
In the latest released version of dateutil, there's a bug whereby a TypeError
can be raised whilst parsing a date. This is because it calls a method which
it expects to return 2 arguments, however it can return 1 depending upon the
input, which results in a TypeError: ArgType not iterable exception. Since
this is equivalent to a failed parse anyway, we can treat it the same as a
ValueError.
2014-03-12 17:19:49 +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