j0hnsmith
c18f8c92e7
added BSONSerializer
2013-11-11 15:13:41 +00:00
Dmytro Popovych
f2c25b4744
Error in GenericReferenceField serialization was fixed
2013-10-20 20:08:00 +03:00
Gustavo Andrés Angulo
27b846717f
Fixed bug for count method when _none is True
...
If my queryset have elements example:
qs.all().count() => 10
q = qs.all().none()
the count in queryset "q" must be 0
q.count() => 0
2013-10-17 16:37:31 -05:00
Loic Raucy
9ed138f896
Fixed bug with numeric valuedict keys and BaseDocument._lookup_field().
2013-10-17 16:32:47 +02:00
rfkrocktk
fc4b247f4f
Patch for #491
...
Fix for issue #491 , a bug in the permissions system.
2013-10-14 13:13:34 -07:00
Dan Ward
a2dd8cb6b9
Added app_label Meta attribute to MongoUser class
2013-10-05 20:39:41 +01:00
Joe Friedl
7c254c6136
Use defaults when host and port are passed as None
2013-10-04 14:18:36 -04:00
mishudark
c8a33b83f1
fix(session): session serializer to json
2013-09-29 20:25:26 +02: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
Ross Lawley
7fc45fb711
Merge pull request #468 from elasticsales/fix-dict-validation
...
Fix validation for a nested DictField
2013-09-27 08:33:02 -07:00
Ross Lawley
6f808bd06e
Merge pull request #469 from jyapayne/master
...
Fixes AttributeError when using storage.exists() on a non-existing file.
2013-09-27 08:21:49 -07:00
swistakm
66d9182e50
fix broken external docs link
2013-09-20 12:43:26 +02:00
Joey Payne
654cca82a9
Fixes AttributeError when using storage.exists() on a non-existing file.
2013-09-18 11:38:38 -06: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
Ross Lawley
86c8929d77
0.8.4 is a go
2013-08-23 10:03:10 +00:00
Alexandr Morozov
f57569f553
Remove database name necessity in uri connection schema
2013-08-21 13:52:24 +04:00
Ross Lawley
fffd0e8990
Fixed error raise
2013-08-20 18:54:14 +00:00
Ross Lawley
0dd01bda01
Fixed "$pull" semantics for nested ListFields ( #447 )
2013-08-20 15:54:42 +00:00
Ross Lawley
8a3171308a
Merge remote-tracking branch 'origin/pr/445'
2013-08-20 13:04:20 +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
67baf465f4
Fixed slice when using inheritance causing fields to be excluded ( #437 )
2013-08-20 09:14:58 +00:00
Ross Lawley
02fc41ff1c
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-08-20 08:30:33 +00:00
Ross Lawley
d07a9d2ef8
Dynamic Fields store and recompose Embedded Documents / Documents correctly ( #449 )
2013-08-20 08:30:20 +00:00
crazyzubr
70b320633f
permit the establishment of a field with the name of size or other
...
Example:
# model
class Example(Document):
size = ReferenceField(Size, verbose_name='Size')
# query
examples = Example.objects(size=instance_size)
# caused an error
"""
File ".../mongoengine/queryset/transform.py", line 50, in query
if parts[-1] == 'not':
IndexError: list index out of range
"""
2013-08-15 19:32:13 +08:00
Olivier Cortès
f30208f345
Fix the ._get_db() attribute after a Document.switch_db()
...
Without this patch, I've got:
```
myobj._get_db()
<bound method TopLevelDocumentMetaclass._get_db of <class 'oneflow.core.models.nonrel.Article'>>
```
I need to `myobj._get_db()()` to get the database.
I felt this like a bug.
regards,
2013-08-12 19:12:53 +02: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
40b0a15b35
Fixing typos
2013-08-04 11:03:34 +02:00
Nicolas Cortot
b98b06ff79
Fix an error in get_user_document
2013-08-04 11:01:09 +02:00
Ross Lawley
214415969f
Merge pull request #423 from ncortot/get_user_document
...
Add get_user_document and improve mongo_auth module
2013-07-31 02:43:19 -07:00
Ross Lawley
d8ffa843a9
Added str representation of GridFSProxy ( #424 )
2013-07-31 09:29:41 +00:00
Paul
a69db231cc
Pretty-print GridFSProxy objects
2013-07-31 11:26:23 +10:00
Nicolas Cortot
c17f94422f
Add get_user_document and improve mongo_auth module
...
* Added a get_user_document() methot to access the actual Document class
used for authentication.
* Clarified the docstring on MongoUser to prevent its use when the user
Document class should be used.
* Removed the masking of exceptions when loading the user document class.
2013-07-30 20:48:25 +02: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
f1b1090263
Merge remote-tracking branch 'origin/pr/412' into 412
...
Conflicts:
AUTHORS
2013-07-30 10:32:07 +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
67f43b2aad
Allow args and kwargs to be passed through to_json ( #420 )
2013-07-29 15:29:48 +00:00
Paul Uithol
e27439be6a
Fix BaseDocument._delta
when working with plain ObjectIds instead of DBRefs
2013-07-25 14:52:03 +02:00
Ross Lawley
d92ed04538
Docs update #406
2013-07-23 08:13:52 +00:00
Thom Knowles
80b3df8953
dereference instance not thread-safe
2013-07-22 20:07:57 -04:00
Ross Lawley
48ef176e28
0.8.3 is a go
2013-07-12 08:41:56 +00:00
Ross Lawley
d593f7e04b
Fixed EmbeddedDocuments with id
also storing _id
( #402 )
2013-07-11 08:11:00 +00:00
Ross Lawley
6c599ef506
Fix edge case where _dynamic_keys stored as None ( #387 , #401 )
2013-07-11 07:15:34 +00:00
Ross Lawley
d9f538170b
Added get_proxy_object helper to filefields ( #391 )
2013-07-10 21:19:11 +00:00
Ross Lawley
1785ced655
Merge branch 'master' into 391
2013-07-10 20:35:21 +00:00