Dmytro Popovych
11d4f6499a
Python 2.5-2.6 compatibility fix
2013-10-20 20:21:57 +03:00
Dmytro Popovych
f2c25b4744
Error in GenericReferenceField serialization was fixed
2013-10-20 20:08:00 +03:00
Loic Raucy
1978dc80eb
Added regression test for bug with DictField and numeric keys.
...
When a DictField has numeric fields, BaseDocument._lookup_field doesn't
work correclty.
2013-10-17 16:26:19 +02:00
Mitar
ebf7056f4a
Test for testing invalid dict field value.
2013-10-06 02:55:02 -07:00
Joe Friedl
7c254c6136
Use defaults when host and port are passed as None
2013-10-04 14:18:36 -04:00
Ross Lawley
1145c72b01
Merge pull request #462 from bool-dev/master
...
Fixes #458 , DecimalField now ignores incorrect values until validate is called just like FloatField
2013-09-27 08:41:32 -07:00
Stefan Wojcik
89785da1c5
fix validation for a nested DictField
2013-09-16 23:50:13 -07:00
bool.dev
168ecd67b0
Fixes #458 , DecimalField now ignores incorrect values until validate is called,
...
just like FloatField.
2013-09-06 22:05:31 +05:30
Alexandr Morozov
f57569f553
Remove database name necessity in uri connection schema
2013-08-21 13:52:24 +04:00
Ross Lawley
0dd01bda01
Fixed "$pull" semantics for nested ListFields ( #447 )
2013-08-20 15:54:42 +00:00
Ross Lawley
a707598042
Allow fields to be named the same as query operators ( #445 )
2013-08-20 13:13:17 +00:00
Ross Lawley
29c887f30b
Updated field filter logic - can now exclude subclass fields ( #443 )
2013-08-20 12:21:20 +00:00
Ross Lawley
661398d891
Fixed dereference issue with embedded listfield referencefields ( #439 )
2013-08-20 10:22:06 +00:00
Ross Lawley
d07a9d2ef8
Dynamic Fields store and recompose Embedded Documents / Documents correctly ( #449 )
2013-08-20 08:30:20 +00:00
Ross Lawley
5bcc454678
Handle dynamic fieldnames that look like digits ( #434 )
2013-08-07 09:07:57 +00:00
Ross Lawley
88ca0f8196
Merge remote-tracking branch 'origin/pr/432'
...
Conflicts:
tests/test_django.py
2013-08-06 11:05:52 +00:00
Nicolas Cortot
a0d255369a
Add a test case for get_user_document
2013-08-04 11:29:16 +02:00
Ross Lawley
d8ffa843a9
Added str representation of GridFSProxy ( #424 )
2013-07-31 09:29:41 +00:00
Ross Lawley
b4777f7f4f
Fix test
2013-07-30 15:04:52 +00:00
Ross Lawley
a57d9a9303
Added regression test ( #418 )
2013-07-30 13:28:05 +00:00
Ross Lawley
5e70e1bcb2
Update transform to handle docs erroneously passed to unset ( #416 )
2013-07-30 13:17:38 +00:00
Ross Lawley
0c43787996
Fixed indexing - turn off _cls ( #414 )
2013-07-30 11:43:52 +00:00
Ross Lawley
6efd6faa3f
Fixed QuerySetNoCache.count() caching ( #410 )
2013-07-30 10:30:16 +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
7a97d42338
to_json test updates #420
2013-07-29 15:38:08 +00:00
Paul Uithol
d143e50238
Replace assertIn
with an assertTrue
; apparently missing in Python 2.6
2013-07-25 15:34:58 +02:00
Paul Uithol
2ad5ffbda2
Add asserts to test_delta_with_dbref_*
, instead of relying on exceptions
2013-07-25 14:51:09 +02:00
Paul Uithol
dae9e662a5
Create test case for failing saves (wrong delta) with dbref=False
2013-07-25 14:30:20 +02:00
Ross Lawley
d593f7e04b
Fixed EmbeddedDocuments with id
also storing _id
( #402 )
2013-07-11 08:11:00 +00:00
Ross Lawley
d9f538170b
Added get_proxy_object helper to filefields ( #391 )
2013-07-10 21:19:11 +00:00
Ross Lawley
6e89e736b7
Merge remote-tracking branch 'origin/pr/393' into 393
...
Conflicts:
mongoengine/queryset/queryset.py
tests/queryset/queryset.py
2013-07-10 19:53:13 +00:00
Ross Lawley
634b874c46
Added QuerySetNoCache and QuerySet.no_cache() for lower memory consumption ( #365 )
2013-07-10 19:40:57 +00:00
Ross Lawley
f4ea1ad517
Merge remote-tracking branch 'origin/pr/376'
...
Conflicts:
AUTHORS
2013-07-10 13:50:52 +00:00
Ross Lawley
f34e8a0ff6
Fixed as_pymongo to return the id ( #386 )
2013-07-10 13:38:53 +00:00
Ross Lawley
4209d61b13
Document.select_related() now respects db_alias
( #377 )
2013-07-10 12:49:19 +00:00
Ross Lawley
af86aee970
_dynamic field updates - fixed pickling and creation order
...
Dynamic fields are ordered based on creation and stored in _fields_ordered (#396 )
Fixed pickling dynamic documents `_dynamic_fields` (#387 )
2013-07-10 10:57:24 +00:00
Ross Lawley
7cb46d0761
Fixed ListField setslice and delslice dirty tracking ( #390 )
2013-07-10 09:11:50 +00:00
Ross Lawley
a1d142d3a4
Prep for django and py3 support
2013-07-10 08:38:13 +00:00
Wilson Júnior
592c654916
extending support for queryset.sum and queryset.average methods
2013-07-05 10:36:11 -03:00
Ross Lawley
8d21e5f3c1
Fix tests for py2.6
2013-07-02 09:47:54 +00:00
Ross Lawley
fbe5df84c0
Remove users post uri test
2013-06-25 09:30:28 +00:00
kelvinhammond
caff44c663
Fixed sum and average queryset function
...
* Fixed sum and average map reduce functions for sum and average so that
it works with mongo dot notation.
* Added unittest cases / updated them for the new changes
2013-06-21 09:39:11 -04:00
Ross Lawley
d6edef98c6
Added match ($elemMatch) support for EmbeddedDocuments ( #379 )
2013-06-21 11:29:23 +00:00
Ross Lawley
9867e918fa
Fixed weakref being valid after reload ( #374 )
2013-06-21 11:04:29 +00:00
Ross Lawley
e116bb9227
Fixed queryset.get() respecting no_dereference ( #373 )
2013-06-21 10:39:10 +00:00
Ross Lawley
f1a1aa54d8
Added full_result kwarg to update ( #380 )
2013-06-21 10:19:40 +00:00
Ross Lawley
000eff73cc
Make test_indexes_and_multiple_inheritance place nice with py3.3 ( #364 )
2013-06-07 08:33:34 +00:00
Ross Lawley
254efdde79
Merge remote-tracking branch 'origin/pr/364' into 364
2013-06-07 08:25:42 +00:00
Stefan Wojcik
ba7101ff92
list_indexes support for multiple inheritance
2013-06-06 22:22:43 -07:00