Rik
80f80cd31f
fixed more tests that were using undefined model fields
2014-11-29 23:20:31 -02:00
Rik
79705fbf11
moved initialization of _created before FieldDoesNotExist check
...
Because otherwise we'll get a FieldDoesNotExist error on the field
_created.
2014-11-29 23:20:30 -02:00
Rik
191a4e569e
added ints in string.format() for 2.6 compability
2014-11-29 23:20:30 -02:00
Rik
1cac35be03
using python 2.6 compatible way of assertRaises
2014-11-29 23:20:30 -02:00
Rik
6d48100f44
add test if FieldDoesNotExist is raised
...
When trying to set an undefined field.
2014-11-29 23:20:30 -02:00
Rik
4627af3e90
add FieldDoesNotExist exception to __all__
...
So it will be available when you do:
from mongoengine import *
2014-11-29 23:20:30 -02:00
Rik
913952ffe1
remove unittest test_no_overwritting_no_data_loss
...
Now that fields need to be defined explicitly, it's not possible to have
another property with the same name on a model.
https://github.com/MongoEngine/mongoengine/pull/457#issuecomment-47513105
2014-11-29 23:20:30 -02:00
Rik
67bf6afc89
fixed tests that were using undefined model fields
2014-11-29 23:20:30 -02:00
Rik
06064decd2
check for dynamic document, exclude id pk and _cls
2014-11-29 23:20:30 -02:00
Rik
4cca9f17df
Check if undefined fields are supplied on document
...
If an undefined field is supplied to a document instance, a
`FieldDoesNotExist` Exception will be raised.
2014-11-29 23:20:30 -02:00
Wilson Júnior
74a89223c0
replaced text_score
attribute to get_text_score
method
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:09:26 -02:00
Yohan Graterol
d27e1eee25
Merge pull request #806 from mmelliso/mmelliso/indexing
...
Generate Unique Indices for Lists of EmbeddedDocs
2014-11-25 02:37:53 -05:00
Yohan Graterol
b1f00bb708
Merge pull request #810 from 3lnc/Doc_fixes
...
Minor typos fixes in docs
2014-11-25 02:36:59 -05:00
Slam
e0f1e79e6a
Minor typos fixes in docs
2014-11-24 16:57:43 +02:00
Matthew Ellison
d70b7d41e8
Update to Changelog to include Fix for #358
2014-11-21 07:29:50 -05:00
Matthew Ellison
43af9f3fad
Update Tests for EmbeddedDocument Unique Indicies
2014-11-20 11:20:04 -05:00
Matthew Ellison
bc53dd6830
Generate Unique Indices for Lists of EmbeddedDocs
...
- Unique indices are now created in the database for EmbeddedDocument
fields when the EmbeddedDocument is in a ListField
- Closes Issue #358
2014-11-19 22:37:27 -05:00
Yohan Graterol
263616ef01
Merge pull request #804 from CestDiego/patch-1
...
Big typo fix for allow_inheritance page
2014-11-19 21:20:02 -05:00
Diego Berrocal
285da0542e
Update AUTHORS with @cestdiego
2014-11-19 09:39:51 -05:00
Diego Berrocal
17f7e2f892
Big typo fix for allow_inheritance page
2014-11-19 02:49:08 -05:00
Yohan Graterol
a29d8f1d68
Merge pull request #803 from DavidBord/fix-515
...
fix-#515: sparse fields
2014-11-16 22:04:24 -05:00
David Bordeynik
8965172603
fix-#515: sparse fields
2014-11-14 21:45:46 +02:00
David Bordeynik
03c2967337
Update changelog & authors - #801
2014-11-13 20:47:31 +02:00
David Bordeynik
5b154a0da4
Merge pull request #801 from mikhailmoshnogorsky/patch-1
...
write_concern not in params of Collection#remove
2014-11-13 16:19:56 +02:00
mikhailmoshnogorsky
b2c8c326d7
write_concern not in params of Collection#remove
2014-11-12 17:00:07 -05:00
Yohan Graterol
96aedaa91f
Install Django dev from repo with pip
2014-11-12 12:06:20 -05:00
Omer Katz
a22ad1ec32
Exclude Django 1,7 and Python 2.6 since Django 1.7 doesn't support 2.6.
2014-11-11 09:09:21 +02:00
Omer Katz
a4244defb5
Fixed build matrix.
2014-11-10 09:41:29 +02:00
Omer Katz
57328e55f3
Bumped django versions and added 1.7.1.
2014-11-10 09:37:35 +02:00
Yohan Graterol
87c32aeb40
Merge branch 'aericson-better_basedocument_eq'
2014-11-09 21:32:58 -05:00
Yohan Graterol
2e01e0c30e
Added merge to changelog.rst
2014-11-09 21:32:50 -05:00
Yohan Graterol
a12b2de74a
Fix merge MongoEngine/mongoengine#799
2014-11-09 21:31:56 -05:00
Yohan Graterol
6b01d8f99b
Merge branch 'DavidBord-fix-734'
2014-11-09 21:28:12 -05:00
Yohan Graterol
eac4f6062e
Fix merge in docs/changelog.rst
2014-11-09 21:28:03 -05:00
Yohan Graterol
5583cf0a5f
PEP8 compliance tests/document/instance.py
2014-11-09 21:27:23 -05:00
Yohan Graterol
57d772fa23
Fix merge in tests/document/instance.py
2014-11-09 21:19:05 -05:00
Yohan Graterol
1bdc3988a9
Merge pull request #798 from DavidBord/fix-771
...
fix-#771: OperationError: Shard Keys are immutable. Tried to update id e...
2014-11-09 20:51:06 -05:00
André Ericson
2af55baa9a
Better BaseDocument equality check when not saved
...
When 2 instances of a Document had id = None they would be considered
equal unless an __eq__ were implemented.
We now return False for such case. It now behaves more similar to
Django's ORM.
2014-11-09 16:19:15 -03:00
David Bordeynik
0452eec11d
fix-#771: OperationError: Shard Keys are immutable. Tried to update id even though the document is not yet saved
2014-11-09 19:23:49 +02:00
Wilson Júnior
c4f7db6c04
Merge pull request #796 from aericson/fix_dynamic_document_reload
...
Fix KeyError on reload() from a DynamicDocument
2014-11-08 23:52:37 -02:00
André Ericson
3569529a84
Fix KeyError on reload() from a DynamicDocument
...
If the document is in memory and a field is deleted from the db,
calling reload() would raise a KeyError.
2014-11-08 19:11:51 -03:00
Yohan Graterol
70942ac0f6
Update changelog.rst
2014-11-07 11:03:49 -05:00
Yohan Graterol
dc02e39918
Merge branch 'a4tunado-753'
2014-11-07 11:03:02 -05:00
Yohan Graterol
73d6bc35ec
Fix merge with AUTHORS
2014-11-07 11:02:48 -05:00
Yohan Graterol
b1d558d700
Merge branch 'DavidBord-fix-787'
2014-11-07 10:55:56 -05:00
Yohan Graterol
897480265f
fix PR #787
2014-11-07 10:55:46 -05:00
Yohan Graterol
73724f5a33
Merge pull request #793 from DavidBord/fix-759
...
fix-#759: with_limit_and_skip for count should default like in pymongo
2014-11-07 10:53:04 -05:00
DavidBord
bdbd495a9e
fix-#734: set attribute to None does not work (at least for fields with default values). Solves #735 as well
2014-11-07 15:11:21 +02:00
DavidBord
1fcf009804
fix-#787: Fix storing value of precision attribute in DecimalField
2014-11-07 15:03:11 +02:00
DavidBord
914c5752a5
fix-#759: with_limit_and_skip for count should default like in pymongo
2014-11-07 09:21:17 +02:00