flosch
327452622e
Handle DBRefs correctly within Q objects. Closes #55
2010-07-25 18:22:26 +02:00
Harry Marr
9f98025b8c
Added QuerySet.distinct. Closes #44 .
2010-07-25 15:29:02 +01:00
Florian Schlachter
ec519f20fa
Makes the tests compatible to pymongo 1.7+. Not backwards compatible!
2010-07-19 01:32:28 +02:00
Florian Schlachter
323c86308a
Merge remote branch 'hmarr/v0.4'
...
Conflicts:
mongoengine/fields.py
tests/fields.py
2010-07-19 01:11:28 +02:00
Steve Challis
47bfeec115
Tidied code, added replace() method to FileField
2010-07-19 06:53:21 +08:00
Steve Challis
0512dd4c25
Added new FileField with GridFS support
...
The API is similar to that of PyMongo and most of the same operations are
possible.
The FileField can be written too with put(), write() or by using the assignment
operator. All three cases are demonstrated in the tests. Metadata can be added
to a FileField by assigning keyword arguments when using put() or new_file().
2010-07-19 06:52:11 +08:00
Harry Marr
c2163ecee5
Added test for Geo indexes
2010-07-07 15:12:14 +01:00
Harry Marr
71689fcf23
Got within_box working for Geo fields
2010-07-07 15:00:46 +01:00
Harry Marr
1c334141ee
Merge branch 'geo' of git://github.com/blackbrrr/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
mongoengine/queryset.py
2010-07-07 14:53:25 +01:00
Steve Challis
39b749432a
Tidied code, added replace() method to FileField
2010-06-03 08:27:21 +01:00
Steve Challis
0ad343484f
Added new FileField with GridFS support
...
The API is similar to that of PyMongo and most of the same operations are
possible.
The FileField can be written too with put(), write() or by using the assignment
operator. All three cases are demonstrated in the tests. Metadata can be added
to a FileField by assigning keyword arguments when using put() or new_file().
2010-06-02 20:53:39 +01:00
Harry Marr
196606438c
Fixed Q-object list query issue
2010-05-30 18:34:06 +01:00
Flavio Amieiro
a2c78c9063
Add 'exact' and 'iexact' match operators for QuerySets
2010-05-26 20:24:57 -03:00
Harry Marr
b23353e376
Fixed inherited document primary key issue
2010-05-24 23:03:30 +01:00
Stephan Jaekel
f657432be3
always ignore empty Q objects, if the new Q is empty, the old one will be returned.
2010-05-14 14:35:27 +02:00
Stephan Jaekel
80c2895e56
Merge branch 'master' of http://github.com/flosch/mongoengine
2010-05-14 14:22:29 +02:00
Stephan Jaekel
88da998532
added test for empty Q objects
2010-05-14 14:21:58 +02:00
Florian Schlachter
11c7a15067
Added test for DictField's basecls.
2010-05-14 13:49:13 +02:00
Harry Marr
3b4df4615a
Fixed MRO error that occured on document inheritance
2010-04-17 21:45:11 +01:00
Don Spaulding
ee0c75a26d
Add choices keyword argument to BaseField.__init__()
2010-04-15 17:59:35 -05:00
Harry Marr
2b08ca7c99
Merge branch 'SortedListField' of git://github.com/joshourisman/mongoengine
2010-04-12 17:41:09 +01:00
Josh Ourisman
c8e466a160
Moved SortedListField stuff into its own branch
2010-04-12 12:31:52 -04:00
Timothée Peignier
a39685d98c
make get_or_create returns a tuple with the retrieved or created object and a boolean specifying whether a new object was created
2010-04-12 16:21:29 +01:00
Harry Marr
90200dbe9c
Fixed DecimalField bug
2010-04-12 15:59:20 +01:00
Deepak Thukral
8f4a579df9
DoesNotExist and MultipleObjectsReturned now contributes Document class
2010-03-28 22:22:36 +02:00
Matt Dennewitz
600ca3bcf9
renamed 'test_near' to 'test_geospatial_operators', updated added ordering checks to test
2010-03-23 00:57:26 -05:00
Matt Dennewitz
a4d2f22fd2
added 'geo_indexes' to TopLevelDocumentMetaclass; added GeoPointField, a glorified [lat float, lng float] container; added geo lookup operators to QuerySet; added initial geo tests
2010-03-23 00:14:01 -05:00
Harry Marr
00c8d7e6f5
Bump to v0.3
2010-03-17 16:50:13 +00:00
Harry Marr
0d89e967f2
Merge branch 'mapreduce' of git://github.com/blackbrrr/mongoengine
2010-03-17 16:44:24 +00:00
blackbrrr
447f8d0113
MapReduceDocument.object works with custom primary keys. test included.
2010-03-17 11:31:17 -05:00
Harry Marr
5b42578cb1
Added ~ field name substitution to mapreduce funcs
2010-03-17 14:06:31 +00:00
Harry Marr
25a0a5364a
Deprecated 'name' arg for fields in favour of 'db_field'
2010-03-17 13:47:23 +00:00
blackbrrr
f47d926f29
touched up comments in advanced map/reduce test
2010-03-17 00:56:34 -05:00
blackbrrr
f4d0938e3d
rewrite simple map/reduce test
2010-03-17 00:51:01 -05:00
blackbrrr
0b62c9d2f6
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-03-17 00:34:00 -05:00
blackbrrr
22a6ec7794
merged conflicts
2010-03-09 15:19:14 -06:00
Harry Marr
92150e07d3
Merge branch 'binary-fields' of git://github.com/benmur/mongoengine
2010-03-08 22:17:21 +00:00
Harry Marr
ac3c857e1a
Added rewind to QuerySet, which is implicitly called when iteration finishes
2010-03-08 22:15:40 +00:00
Rached Ben Mustapha
0b3af2052f
implement binary field size validation
2010-03-08 17:06:52 +01:00
Rached Ben Mustapha
bb19ba3eb6
Drop collection at the end of the test
2010-03-08 16:43:43 +01:00
Rached Ben Mustapha
879bf08d18
Simple implementation of BinaryField
2010-03-08 16:42:23 +01:00
Harry Marr
58f877de1a
Added recursive / document name references
2010-02-28 23:16:51 +00:00
Harry Marr
95a7b33fb4
Changed how GenericReferenceFields are stored / queried
2010-02-28 23:15:21 +00:00
Harry Marr
81dd5adccf
GenericReferenceField docs
2010-02-28 21:30:54 +00:00
Harry Marr
94e86a0be1
Merge branch 'gfk' of git://github.com/blackbrrr/mongoengine
2010-02-28 21:08:32 +00:00
Harry Marr
5b2dbfe007
Added tests for URLField and DecimalField
2010-02-28 18:25:40 +00:00
Harry Marr
5e2c5fa97b
Merge branch 'regex-query-shortcuts'
2010-02-28 17:38:03 +00:00
blackbrrr
018b206177
added support for GenericReferenceField to ListField. could be cleaner, perhaps.
2010-02-26 17:38:38 -06:00
blackbrrr
03d31b1890
added global model registry and GenericReferenceField, a ReferenceField not bound to a particular model
2010-02-26 16:59:12 -06:00
Harry Marr
265776566e
QuerySet.only field name translation and polymorphism fix
2010-02-26 19:43:26 +00:00