Florian Schlachter
48facec524
Fixes tiny documentation error. Adds possibility to add custom validation methods to fields, e. g.:
...
class Customer(Document):
country = StringField(validation=lambda value: value in ['DE', 'AT', 'CH'])
Replaced some str() with unicode() for i18n reasons.
2010-04-16 16:59:34 +02:00
Don Spaulding
ee0c75a26d
Add choices keyword argument to BaseField.__init__()
2010-04-15 17:59:35 -05:00
Florian Schlachter
0a074e52e0
Merge remote branch 'hmarr/master'
...
Conflicts:
mongoengine/fields.py
2010-04-15 23:10:34 +02: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
Florian Schlachter
2304dac8e3
added GeoLocationField with auto index-creation for GEO2D
2010-03-30 00:04:39 +02:00
Florian Schlachter
38b2919c0d
added emailfield
2010-03-29 22:02:33 +02:00
Deepak Thukral
207fd9fcb7
keeping import policy in mind
2010-03-29 11:27:50 +02:00
Deepak Thukral
fbcf58c48f
updated documentation
2010-03-29 11:25:17 +02:00
Deepak Thukral
8f4a579df9
DoesNotExist and MultipleObjectsReturned now contributes Document class
2010-03-28 22:22:36 +02: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
60802796cb
Made ListField validation exceptions more helpful
2010-03-17 15:10:10 +00: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
Harry Marr
047cc218a6
Merge branch 'mapreduce' of git://github.com/blackbrrr/mongoengine
...
Conflicts:
mongoengine/queryset.py
2010-03-17 12:31:08 +00:00
Harry Marr
39fc862676
Merge branch 'upsert' of git://github.com/blackbrrr/mongoengine
2010-03-17 12:30:18 +00:00
blackbrrr
f156da4ec2
bumped version
2010-03-17 00:50:44 -05:00
blackbrrr
0b62c9d2f6
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-03-17 00:34:00 -05:00
Deepak Thukral
72161a9b71
no message in expection in future version of python
2010-03-11 21:10:04 +01:00
Deepak Thukral
df8f4e7251
no message in expection in future version of python
2010-03-11 20:42:27 +01:00
blackbrrr
acda64a837
fixed field_js merge artifact
2010-03-09 15:31:28 -06:00
blackbrrr
49a001a93a
re-added missing QuerySet._ordering
2010-03-09 15:28:55 -06:00
blackbrrr
22a6ec7794
merged conflicts
2010-03-09 15:19:14 -06:00
blackbrrr
26c6e4997c
added 'upsert' arg to QuerySet.update and QuerySet.update_one
2010-03-08 21:59:54 -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
879bf08d18
Simple implementation of BinaryField
2010-03-08 16:42:23 +01:00
Deepak Thukral
b99421e7ee
added date_joined and normalization to email address
2010-03-05 07:55:12 +01:00
Harry Marr
53c0cdc0c1
Added recursive and undefined document ref docs
2010-02-28 23:29:42 +00: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
Harry Marr
6e77e32855
Fixed Q object ObjectId comparison issue
2010-02-26 17:13:19 +00:00
Harry Marr
0b1c506626
Added Q object support for regexes (inc. operator shortcuts)
2010-02-26 16:46:07 +00:00
Harry Marr
66520c77f8
Added regex match operators with test
2010-02-26 13:43:45 +00:00
Harry Marr
ab2d019349
Added server-side js docs
2010-02-26 13:23:15 +00:00
Harry Marr
d0e0b291df
Implementation and tests for exec_js field substitution
2010-02-25 17:20:52 +00:00
Harry Marr
200e9eca92
Merge branch 'only_fields' of git://github.com/blackbrrr/mongoengine
2010-02-24 20:23:59 +00:00