Ross Lawley
e2f3406e89
Updated .only() behaviour - now like exclude it is chainable ( #202 )
2013-04-23 14:06:29 +00:00
Ross Lawley
81c7007f80
Added with_limit_and_skip support to count() ( #235 )
2013-04-23 10:38:32 +00:00
Ross Lawley
14b6c471cf
Fix PY3 hasattr connecting to the db at define time
2013-04-22 16:37:09 +00:00
Ross Lawley
0d0befe23e
Removed __len__ from queryset ( #247 )
2013-04-22 16:19:55 +00:00
Ross Lawley
efad628a87
Objects queryset manager now inherited ( #256 )
2013-04-22 15:32:11 +00:00
Ross Lawley
c16e6d74e6
Updated connection to use MongoClient ( #262 , #274 )
2013-04-22 15:07:15 +00:00
Nicolas Cortot
dff44ef74e
Fixing warning which prevented tests from succeeding
...
Now that we're importing the auth classes in the tests, no warning can be
raised or test_dbref_reference_field_future_warning will fail.
2013-04-19 17:50:15 +02:00
Nicolas Cortot
485047f20b
Custom User Model for Django 1.5
2013-04-19 17:34:00 +02:00
Ross Lawley
d5b28356bc
Merge pull request #283 from ncortot/delete_signals_fix
...
Do not fail on delete() when blinker is not available
2013-04-18 06:37:47 -07:00
Ross Lawley
76fddd0db0
Merge branch 'master' into 0.8
...
Conflicts:
AUTHORS
mongoengine/base.py
tests/test_dereference.py
2013-04-18 13:30:00 +00:00
Ross Lawley
c277be8b6b
Merge remote-tracking branch 'origin/pr/278'
2013-04-18 13:17:08 +00:00
Ross Lawley
6e083fa6a1
Merge pull request #280 from Multiposting/ncortot/auth_datetime_fix
...
Fix datetime call in UserManager
2013-04-18 06:11:10 -07:00
Nicolas Cortot
073091a06e
Do not fail on delete() when blinker is not available
2013-04-17 21:45:54 +02:00
Ross Lawley
03bfd01862
Updated field iteration for py2.5
2013-04-17 15:54:32 +00:00
Ross Lawley
dcf3c86dce
Using "id" in data not "_id" as its a mapping of fieldnames ( #255 )
2013-04-17 15:07:57 +00:00
Nicolas Cortot
ec639cd6e9
Fix datetime call in UserManager
2013-04-17 16:34:09 +02:00
Ross Lawley
420376d036
Merge fixes
2013-04-17 14:27:33 +00:00
Ross Lawley
51e50bf0a9
Merge branch 'master' into 0.8M
...
Conflicts:
AUTHORS
docs/django.rst
mongoengine/base.py
mongoengine/queryset.py
tests/fields/fields.py
tests/queryset/queryset.py
tests/test_dereference.py
tests/test_document.py
2013-04-17 11:57:53 +00:00
Ross Lawley
4401a309ee
Merge remote-tracking branch 'origin/pr/268'
2013-04-16 20:49:33 +00:00
Ross Lawley
b562e209d1
Updated EmailField length to support long domains ( #243 )
2013-04-16 20:46:02 +00:00
Ross Lawley
e45397c975
Merge remote-tracking branch 'origin/pr/251'
2013-04-16 20:34:32 +00:00
Ross Lawley
f8ee470e70
Merge remote-tracking branch 'origin/pr/224'
2013-04-16 20:28:24 +00:00
Ross Lawley
4db339c5f4
Merge remote-tracking branch 'origin/pr/240'
2013-04-16 20:19:23 +00:00
Ross Lawley
f970d5878a
Merge remote-tracking branch 'origin/pr/242'
...
Conflicts:
tests/test_document.py
2013-04-16 20:07:03 +00:00
Daniil Sharou
cc0a2cbc6f
fix UnicodeEncodeError for dbref
...
Fix "UnicodeEncodeError: 'ascii' codec can't encode character ..." error in case dbref contains non-ascii characters
2013-04-16 22:34:33 +04:00
Daniil Sharou
add0b463f5
fix UnicodeEncodeError for dbref
...
Fix "UnicodeEncodeError: 'ascii' codec can't encode character ..." error in case dbref contains non-ascii characters
2013-04-16 21:12:57 +04:00
Ross Lawley
b451cc567d
Return '_id' as the key for document.id in _data dictionary
...
* Re #146
Conflicts:
mongoengine/base.py
2013-04-15 08:00:14 +00:00
Ross Lawley
8f05896bc9
Merge remote-tracking branch 'origin/pr/258'
...
Conflicts:
AUTHORS
2013-04-15 07:51:26 +00:00
Ross Lawley
da7a8939df
Also check if a TopLevelMetaclass instance ( #261 )
2013-04-15 07:41:04 +00:00
Ross Lawley
eafbc7f20d
Merge remote-tracking branch 'origin/pr/261'
2013-04-15 07:31:02 +00:00
Ross Lawley
c9a5710554
Fixed order_by chaining issue ( #265 )
2013-04-12 15:56:40 +00:00
Ross Lawley
d134e11c6d
Merge remote-tracking branch 'origin/pr/250'
2013-04-12 14:24:18 +00:00
Ross Lawley
63edd16a92
Resolve field name to db field name when using distinct( #260 , #264 , #269 )
2013-04-12 14:20:44 +00:00
Ross Lawley
37740dc010
Added kwargs to doc.save to help interop with django ( #223 , #270 )
2013-04-12 14:05:08 +00:00
Ross Lawley
04b85ddbf2
Merge branch 'master' into 0.8
...
Conflicts:
.travis.yml
AUTHORS
docs/changelog.rst
mongoengine/base.py
mongoengine/queryset.py
tests/queryset/queryset.py
2013-04-12 13:36:29 +00:00
Ross Lawley
49a7542b14
Fixing cloning in python 3
2013-04-12 12:55:03 +00:00
Ross Lawley
a84ffce5a0
Merge remote-tracking branch 'origin/pr/272'
2013-04-12 10:55:09 +00:00
Kristinn Örn Sigurðsson
7e980a16d0
Don't run unset on IntField if the value is 0 (zero).
...
The IntField in unset if the IntField value doesn't validate to "truthify" (therefore, is
set as 0) and the default value of the IntField in question is 0.
This is not a logical functionality in my opinion. Take this example.
You have an IntField that is a counter which can be incremented and
decremented. This counter has the default value of 0 and is a required
field. Every time the counter reaches 0, the field is unset.
2013-04-05 11:01:46 +02:00
Kristinn Örn Sigurðsson
47df8deb58
Fix the implementation.
2013-04-04 17:30:21 +02:00
Kristinn Örn Sigurðsson
dd006a502e
Don't run unset on IntField if the value is 0 (zero).
2013-04-04 17:09:05 +02:00
Alice Bevan-McGregor
fc1ce6d39b
Allow construction of document instances using positional arguments.
2013-04-03 15:00:51 -04:00
Alice Bevan-McGregor
32d5c0c946
Store ordered list of field names, and return the ordered list when iterating a document instance.
2013-04-03 15:00:34 -04:00
Paul Swartz
20cb0285f0
explicitly check for Document instances when dereferencing
...
In particular, `collections.namedtuple` instances also have a `_fields`
attribute which confuses the dereferencing.
2013-03-27 14:53:47 -04:00
Paul Swartz
faf840f924
only mark a field as changed if the value has changed
...
Prevents spurious changes from being recorded.
2013-03-25 11:00:20 -04:00
Jaepil Jeong
a762a10dec
Revert "Fixed potential overflow error."
...
This reverts commit 67182713d96233d3d2feb0f67d39ddaf1789c692.
2013-03-18 19:30:04 +09:00
Aleksandr Sorokoumov
a192029901
ReferenceField query chaining bug fixed.
2013-03-16 16:54:26 +01:00
Jaepil Jeong
67182713d9
Fixed potential overflow error.
2013-03-15 00:12:48 +09:00
Jaepil Jeong
2d6ae16912
Added LongField to support 64-bit integer type.
2013-03-14 23:25:22 +09:00
Russ Weeks
41a698b442
Changed dereference.py to keep tuples as tuples
2013-03-12 10:28:29 -07:00
zmolodchenko
d36f6e7f24
fix error reporting, where choices is list of flat values
2013-03-09 21:08:10 +02:00