Bastien Gérard and GitHub
d73ca6f90d
Create main.yml
2020-11-15 15:24:40 +01:00
Bastien Gérard and GitHub
e6c2169f76
Merge pull request #2418 from bagerard/add_black_formatting_badge
...
Add black badge to readme
2020-11-14 13:42:57 +01:00
Bastien Gérard
1d17dc4663
Add black badge to readme to emphasize that repo is using autoformatter black as it is often forgotten in PR and makes CI failing
2020-11-12 22:13:53 +01:00
Bastien Gérard and GitHub
eeac3bd2e6
Merge pull request #2416 from bagerard/remove_python_35
...
Remove Py3.5 as it is EOL and added 3.9 to CI
2020-11-12 09:47:44 +01:00
Bastien Gérard
3f5a15d236
improve changelog
2020-11-12 00:43:22 +01:00
Bastien Gérard
338c40b5d5
Remove Py3.5 as it is EOL and added 3.9 to CI
2020-11-11 21:14:54 +01:00
Bastien Gérard and GitHub
fc3ccf9606
Merge pull request #2415 from bagerard/add_srv_uri_connect_doc
...
Document fact that srv URI can be used with host #1956
2020-11-11 21:05:52 +01:00
Bastien Gérard
746faceb5c
Document fact that srv URI can be used with host #1956
2020-11-08 22:55:24 +01:00
Bastien Gérard and GitHub
eb56fb9bda
Merge pull request #2413 from bagerard/dynamic_document_parsing_known_fields
...
Bug fix in DynamicDocument which is not parsing known fields
2020-11-08 13:17:07 +01:00
Bastien Gérard and GitHub
161493c0d2
Merge pull request #2408 from bagerard/refactoring_remove_useless_code_only_fields
...
Removed code related to Document.__only_fields
2020-11-08 13:16:03 +01:00
Bastien Gérard and GitHub
cb9f329d11
Merge pull request #2401 from SMASHDOCs/bugfix-save-sharding
...
Bugfix #2154
2020-11-07 21:43:49 +01:00
Bastien Gérard
03af784ebe
Bug fix in DynamicDocument which isn not parsing known fields in constructor like Document do #2412
2020-11-07 21:30:23 +01:00
Felix Schultheiß
e5f6e4584a
Merge commit master into bugfix-save-sharding
2020-11-03 10:05:31 +01:00
Felix Schultheiß
79f9f223d0
added to authors
2020-11-03 10:00:15 +01:00
Felix Schultheiß
0bc18cd6e1
fixed shard test case for old mongodb version
2020-11-03 10:00:02 +01:00
Felix Schultheiß
30a3c6a5b7
added testcase for save create with shard key
2020-11-02 17:30:24 +01:00
Bastien Gérard
90c5d83f84
remove deprecated comment
2020-11-02 15:02:11 +01:00
Bastien Gérard
d8b8ff6851
Removed code related to Document.__only_fields and Queryset.only_fields which appear to have no effect
2020-11-02 14:52:02 +01:00
Bastien Gérard and GitHub
ee664f0c90
Merge pull request #2406 from bagerard/improve_enumfield_doc
...
improve EnumField Doc and add quick test
2020-11-01 23:08:30 +01:00
Bastien Gérard
94a7e813b1
fix difference in test for certain version of pymongo
2020-11-01 19:37:13 +01:00
Bastien Gérard
8ef7213426
improve EnumField Doc and add quick test
2020-11-01 14:05:58 +01:00
Bastien Gérard and GitHub
2f4464ead5
Merge pull request #2404 from mas15/add-enum-field
...
Add EnumField
2020-11-01 13:41:20 +01:00
Bastien Gérard and GitHub
89b93461ac
Merge pull request #2405 from bagerard/remove_encoding_declarations
...
remove utf8 encoding declaration in test files
2020-11-01 13:16:57 +01:00
Mateusz Stankiewicz
9e40f3ae83
PR ammends
2020-10-31 10:47:20 +01:00
Bastien Gérard
f4962fbc40
remove utf8 encoding declaration in test files as it's not needed/recommended
2020-10-30 21:10:21 +01:00
Mateusz Stankiewicz
c9d53ca5d5
Add EnumField
2020-10-30 13:06:37 +01:00
Bastien Gérard and GitHub
65f50fd713
Merge pull request #2387 from bagerard/fix_change_fields_inconsistencies
...
fix inconsistencies in ._changed_fields computation
2020-10-29 21:15:31 +01:00
Felix Schultheiß
bf1d04e399
black reformatting
2020-10-29 14:56:08 +01:00
Felix Schultheiß
5a8e5e5a40
updated docstring
2020-10-27 16:34:57 +01:00
Felix Schultheiß
f3919dd839
stripped out integrating shard key from _save_update, use it also in _save_create
2020-10-27 12:55:35 +01:00
Bastien Gérard and GitHub
9f82a02ddf
Merge pull request #2106 from bagerard/add_validation_to_doc
...
Add a documentation page for validation
2020-10-20 00:27:05 +02:00
Bastien Gérard
015a36c85f
minor styling fix in .rst
2020-10-19 23:59:12 +02:00
Bastien Gérard
fbd3388a59
Merge branch 'master' of github.com:MongoEngine/mongoengine into add_validation_to_doc
2020-10-19 23:36:12 +02:00
Bastien Gérard
d8a52d68c5
improve doc in .readthedocs.yml
2020-10-19 23:34:24 +02:00
Bastien Gérard
4286708e2e
fix mongoengine setup.py path in .readthedocs.yml
2020-10-18 22:47:00 +02:00
Bastien Gérard
e362d089e1
install mongoengine for readthedocs build to work
2020-10-18 22:44:06 +02:00
Bastien Gérard
6b657886a5
remove explicit install from .readthedocs.yml to rely on default instead
2020-10-18 22:21:45 +02:00
Bastien Gérard
eb16945147
fix requirements.txt location for readthedocs
2020-10-18 22:06:15 +02:00
Bastien Gérard and GitHub
38047ca992
Merge pull request #2396 from bagerard/fix_readthedocs_failed_build
...
Fix readthedocs build that failed
2020-10-18 22:04:01 +02:00
Bastien Gérard
c801e79d4b
Fix readthedocs build that failed by making it use python3 instead of default python2.7
2020-10-18 21:33:30 +02:00
Bastien Gérard
3fca3739de
rework validation documentation based on review
2020-10-18 21:11:16 +02:00
Bastien Gérard
c218c8bb6c
Merge branch 'master' of github.com:MongoEngine/mongoengine into add_validation_to_doc
2020-10-17 15:05:27 +02:00
Bastien Gérard and GitHub
0bbc05995a
Merge pull request #2393 from bagerard/fix_listfield_change_0
...
Fix listfield change detection of index 0
2020-10-11 10:15:18 +02:00
Bastien Gérard
3adb67901b
update changelog for #2392
2020-10-11 00:53:46 +02:00
Bastien Gérard
d4350e7da4
Fix for ListField that isnt detecting properly that item 0 is changed
2020-10-10 23:32:22 +02:00
Bastien Gérard and GitHub
4665658145
Merge pull request #2390 from bagerard/bump_latest_lib_ci
...
Upgrade pymongo and mongodb versions used in CI
2020-10-07 21:41:12 +02:00
Bastien Gérard
0d289fd5a1
upgrade pymongo and mongodb versions used in CI
2020-10-07 21:30:43 +02:00
Bastien Gérard
aabc18755c
fix inconsistencies in ._changed_fields computation
2020-10-07 00:01:09 +02:00
Bastien Gérard
1f2a5db016
fix deprecated use of .update in test suite
2020-08-12 22:30:52 +02:00
Bastien Gérard and GitHub
ff40f66291
Merge pull request #2243 from bagerard/fix_count_documents_deprecation
...
Fix count documents deprecation
2020-08-12 22:18:02 +02:00
Bastien Gérard
7f77084e0e
minor fixes in doc links
2020-08-12 21:56:38 +02:00
Bastien Gérard
aca4de728e
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_count_documents_deprecation
2020-08-11 23:01:33 +02:00
Bastien Gérard and GitHub
9e7ca43cad
Merge pull request #2365 from hiimdoublej/fix/queryTransform
...
Fix query transformation regarding special operators
2020-08-11 22:18:33 +02:00
Bastien Gérard
7116dec74a
run black to please ci
2020-08-11 21:55:22 +02:00
Bastien Gérard
a5302b870b
Merge branch 'fix/queryTransform' of git://github.com/hiimdoublej/mongoengine into hiimdoublej-fix/queryTransform
2020-08-11 21:48:00 +02:00
Bastien Gérard and GitHub
604e9974b6
Merge pull request #2363 from bagerard/AttributeError_message_attr
...
fix py3 incompatible code
2020-08-03 21:37:36 +02:00
Johnny Chang
3e1c83f8fa
Fix query transformation regarding special operators
2020-08-04 00:30:15 +08:00
Bastien Gérard
e431e27cb2
#2360 fix py3 incompatible code
2020-08-01 15:09:10 +02:00
Bastien Gérard and GitHub
4f188655d0
Merge pull request #2335 from bagerard/fix_limit0_bug
...
Fix bug with Doc.objects.limit(0) which should return all docs
2020-05-27 09:43:35 +02:00
Bastien Gérard
194b0cac88
improve doc + changelog
2020-05-26 23:45:35 +02:00
Bastien Gérard
7b4175fc5c
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_limit0_bug
2020-05-26 23:44:05 +02:00
Bastien Gérard
adb5f74ddb
Fix a bug in limit0 #2311
2020-05-26 23:37:55 +02:00
Bastien Gérard and GitHub
107a1c34c8
Merge pull request #2331 from abarto/fix/clone-retain-read-preference-read-concern
...
Add read_concern to cloned properties. Add read_concern to aggregate().
2020-05-23 23:22:56 +02:00
Bastien Gérard
dc7da5204f
Merge branch 'terencehonles-patch-1'
2020-05-23 23:12:33 +02:00
Bastien Gérard
0301bca176
Merge branch 'patch-1' of https://github.com/terencehonles/mongoengine into terencehonles-patch-1
2020-05-23 23:12:01 +02:00
Bastien Gérard
49f9bca23b
fix black formatting
2020-05-23 23:08:56 +02:00
Agustin Barto
31498bd7dd
Update changelog
2020-05-20 18:58:18 -03:00
Agustin Barto
1698f398eb
Add _read_concern to copied properties. Add read_concern to aggregate. Add test to check the read_concern and read_preference values are kept after cloning.
2020-05-20 18:56:13 -03:00
Bastien Gérard and GitHub
4275c2d7b7
Merge pull request #2330 from terencehonles/fix-empty-deprecation-warning-in-q-node
...
fix self inflicted deprecation warnings in QNode
2020-05-19 22:02:12 +02:00
Terence D. Honles
22bff8566d
fix self inflicted deprecation warnings in QNode
2020-05-19 11:00:30 -07:00
Terence Honles and GitHub
d8657be320
Fix requirement Pillow < 7 to mention it is for tests only
2020-05-19 10:23:07 -07:00
Bastien Gérard and GitHub
3db9d58dac
Merge pull request #2319 from bagerard/prepare_0_20_0
...
Bump version to 0.20.0 and update CHANGELOG accordingly
2020-05-01 13:24:01 +02:00
Bastien Gérard
3fbe9c3cdd
Bump version to 0.20.0 and update CHANGELOG accordingly
2020-05-01 13:13:30 +02:00
Bastien Gérard and GitHub
130e9c519c
Merge pull request #2314 from bagerard/abarto-feature/allow-setting-read-concern-queryset
...
Abarto feature/allow setting read concern queryset
2020-04-26 22:57:57 +02:00
Bastien Gérard
78c9e9745d
fix linting + update changelog & contributors
2020-04-26 22:51:56 +02:00
Bastien Gérard and GitHub
38ebb5abf4
Merge branch 'master' into feature/allow-setting-read-concern-queryset
2020-04-26 22:36:47 +02:00
Bastien Gérard and GitHub
9b73be26ab
Merge pull request #2313 from bagerard/DonQueso89-master
...
Improve docstring EmbeddedDocumentList (clone)
2020-04-26 22:33:39 +02:00
Bastien Gérard
fd0095b73f
improve recent docstring of EmbeddedDocumentList.create
2020-04-26 22:28:14 +02:00
Bastien Gérard
226049f66a
Merge branch 'master' of github.com:MongoEngine/mongoengine into DonQueso89-master
2020-04-26 22:27:11 +02:00
Bastien Gérard
dc1cf88ca6
Merge branch 'master' of git://github.com/DonQueso89/mongoengine into DonQueso89-master
2020-04-26 22:27:02 +02:00
Bastien Gérard and GitHub
f5f8b730b5
Merge pull request #2254 from bagerard/fix_complex_datetime_field_invalid_string_set
...
fix complex datetime field invalid string set
2020-04-25 22:17:20 +02:00
Bastien Gérard
e8f6b42316
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_complex_datetime_field_invalid_string_set
2020-04-25 22:12:35 +02:00
Bastien Gérard and GitHub
49b0d73654
Merge pull request #2310 from bagerard/Pacu2-add-dev-tools
...
Pacu2 add dev tools
2020-04-25 21:53:50 +02:00
Bastien Gérard
394da67cf1
fix travis env var
2020-04-25 21:47:37 +02:00
Bastien Gérard
ef7da36ac6
Update pre-commit and fix existing flake8 warnings once for all
2020-04-25 21:36:07 +02:00
Bastien Gérard
1312100bc7
Merge branch 'master' of github.com:MongoEngine/mongoengine into Pacu2-fix/add-dev-tools
2020-04-25 20:53:35 +02:00
Bastien Gérard
4085bc2152
Merge branch 'fix/add-dev-tools' of git://github.com/Pacu2/mongoengine into Pacu2-fix/add-dev-tools
2020-04-25 20:46:44 +02:00
Bastien Gérard
f4d7e72426
improve .gitignore
2020-04-25 20:43:55 +02:00
Bastien Gérard and GitHub
ece63ad071
Merge pull request #2279 from bagerard/drop_py2_support
...
Drop python 2 support
2020-04-25 14:22:23 +02:00
Bastien Gérard and GitHub
a9550b8243
Merge pull request #2232 from bagerard/bump_development_status_classifier
...
Bump development status classifier
2020-04-25 14:17:46 +02:00
Bastien Gérard
43724e40b2
improve doc related to dropping Py2 support
2020-04-25 14:16:56 +02:00
Bastien Gérard
1bfa40e926
Merge branch 'master' of github.com:MongoEngine/mongoengine into bump_development_status_classifier
2020-04-25 14:07:43 +02:00
Bastien Gérard
d493f71c4e
Merge branch 'drop_py2_support' of github.com:bagerard/mongoengine into drop_py2_support
2020-04-25 14:05:30 +02:00
Bastien Gérard
87f4d1a323
Merge branch 'master' of github.com:MongoEngine/mongoengine into drop_py2_support
2020-04-25 13:51:21 +02:00
Bastien Gérard and GitHub
0a0e6114f5
Merge branch 'master' into drop_py2_support
2020-04-19 23:13:36 +02:00
Bastien Gérard and GitHub
41d36fa3bf
Merge pull request #2304 from bagerard/fix_py2_configparser
...
fix subdependencies that dropped Py2 support
2020-04-09 09:20:39 +02:00
Bastien Gérard
707923e3f5
fix subdependencies that dropped Py2 support
2020-04-08 21:54:26 +02:00
Bastien Gérard
d9b9581df2
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_complex_datetime_field_invalid_string_set
2020-04-08 21:33:58 +02:00
Bastien Gérard and GitHub
463e7c66af
Merge pull request #2287 from bagerard/fix_queryset_get_error_message_multiple_match
...
Improve MultipleObjectsReturned message from queryset.get
2020-04-08 21:28:56 +02:00
Filip Kucharczyk and GitHub
2be28a22a7
Merge branch 'master' into fix/add-dev-tools
2020-03-27 15:15:14 +01:00
Kes and GitHub
d73f0bb1af
fix typo
2020-03-26 17:25:25 +01:00
Kes and GitHub
ce74978b1e
Correct and improve docstring on EmbeddedDocumentList.create()
2020-03-26 17:23:16 +01:00
Bastien Gérard
2b0157aecd
Improve Queryset.get to avoid confusing message in case multiple match are found
2020-03-22 14:08:29 +01:00
Bastien Gérard and GitHub
f49baf5d90
Merge pull request #2285 from bagerard/remove_drop_dups
...
Remove drop_dups that was deprecated with Mongo3
2020-03-18 21:02:03 +01:00
Agustin Barto
7cc964c7d8
Add missing import
2020-03-17 21:58:36 -03:00
Agustin Barto
bc77322c2f
Update unit tests
2020-03-17 21:49:17 -03:00
Agustin Barto
8913a74a86
Allow setting the read concern to None
2020-03-17 21:31:05 -03:00
Agustin Barto
af35b25d15
Refactor read_preference to accept a dictionary instead of a ReadPreference instance.
2020-03-17 21:28:08 -03:00
Bastien Gérard
476b07af6e
reformat changelog
2020-03-17 23:59:54 +01:00
Bastien Gérard
e2b9a02531
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_drop_dups
2020-03-17 23:58:44 +01:00
Bastien Gérard and GitHub
6cc6229066
Merge pull request #2245 from bagerard/remove_old_deprecated_method
...
[>= 0.19.0] Remove old deprecated method
2020-03-17 23:51:42 +01:00
Agustin Barto
4c62a060f0
Add tests for set_write_conern and set_read_write_concern
2020-03-17 19:37:21 -03:00
Agustin Barto
3d80637fa4
Refactor set_read_write_concern so read_conern is consistent with the write_concerns argument.
2020-03-17 19:08:43 -03:00
Bastien Gérard and GitHub
68be9fe979
Merge pull request #2284 from bagerard/remove_field_name_attribute_deprecated
...
Remove name param in Field constructor (replaced by db_field)
2020-03-17 21:46:38 +01:00
Bastien Gérard
547cd4a3ae
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_old_deprecated_method
2020-03-17 21:39:36 +01:00
Bastien Gérard
ee2d50b2d1
remove drop_dups index option, deprecated with MongoDB3
2020-03-17 21:38:50 +01:00
Bastien Gérard
15c3ddece8
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_field_name_attribute_deprecated
2020-03-17 21:29:47 +01:00
Bastien Gérard and GitHub
beaa9744b7
Merge pull request #2283 from bagerard/remove_slave_okay_deprecated
...
remove qs.slave_okay() that is deprecated since pymongo3
2020-03-17 21:27:50 +01:00
Bastien Gérard
8eb51790b5
Remove Field(name='...') which was deprecated when db_field was introduced a while ago
2020-03-17 21:26:41 +01:00
Bastien Gérard
aadc6262ed
remove qs.slave_okay() that is deprecated since pymongo3
2020-03-17 21:10:52 +01:00
Bastien Gérard and GitHub
00ae6298d4
Merge pull request #2242 from bagerard/fix_dictfield_validation
...
Fix bug introduced in 0.19 related to DictField validation
2020-03-17 20:26:54 +01:00
Bastien Gérard
ad0669a326
update changelog
2020-03-17 10:15:47 +01:00
Bastien Gérard
85df76c623
Merge branch 'master' of github.com:MongoEngine/mongoengine into drop_py2_support
2020-03-17 09:24:32 +01:00
Bastien Gérard
87512246cb
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_dictfield_validation
2020-03-16 22:30:48 +01:00
Bastien Gérard
a3f9016ae9
reformat import for flake8
2020-03-15 22:27:19 +01:00
Bastien Gérard
4e58e9f8d1
Merge branch 'master' of github.com:MongoEngine/mongoengine into feature/allow-setting-read-concern-queryset
2020-03-15 22:25:59 +01:00
Bastien Gérard and GitHub
7c533394fd
Merge pull request #2267 from abarto/support-elemmatch-projection
...
Add support for the elemMatch projection operator
2020-03-15 22:25:08 +01:00
Bastien Gérard
333e014f13
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_complex_datetime_field_invalid_string_set
2020-03-15 22:20:46 +01:00
Bastien Gérard
c0c0efce18
improve docstring related to #2267 and document the change in the changelog
2020-03-15 22:14:26 +01:00
Bastien Gérard
beabaee345
Merge branch 'master' of github.com:MongoEngine/mongoengine into support-elemmatch-projection
2020-03-15 22:08:20 +01:00
Bastien Gérard and GitHub
c937af3919
Merge pull request #2281 from bagerard/fix_py38_deprecation_warn
...
Fix invalid escape seq in codebase
2020-03-15 21:16:54 +01:00
Bastien Gérard
aa4a6ae023
Fix invalid escape seq in codebase
2020-03-15 21:02:44 +01:00
Bastien Gérard
b57946ec98
remove virtualenv installation in travis
2020-03-14 21:39:47 +01:00
Bastien Gérard
1e110a2c41
run pyupgrade --py3-plus
2020-03-11 23:34:43 +01:00
Bastien Gérard
b234aa48e4
run pyupgrade
2020-03-11 23:21:38 +01:00
Bastien Gérard
8086576677
get rid of six
2020-03-11 23:07:03 +01:00
Bastien Gérard
03e34299f0
clean code related to Py2 + six.text_type & six.string_types
2020-03-11 21:50:50 +01:00
Bastien Gérard
421e3f324f
Drop python2 support
2020-03-09 00:18:52 +01:00
Bastien Gérard
a0b803959c
Merge branch 'master' of github.com:MongoEngine/mongoengine into py2py3_improve_compat
2020-03-08 14:44:39 +01:00
Bastien Gérard
ff4d57032a
reformat w black
2020-03-03 23:51:11 +01:00
Bastien Gérard
ba34589065
Merge branch 'master' of github.com:MongoEngine/mongoengine into abarto-feature/allow-setting-read-concern-queryset
2020-03-03 23:50:36 +01:00
Bastien Gérard and GitHub
a4d11eef46
Merge pull request #2264 from Pacu2/2263/combining-raw-and-regular-queries
...
Fix for combining raw and regular filters
2020-03-03 23:48:31 +01:00
Filip Kucharczyk
fda2e2b47a
Update changelog
2020-03-03 15:18:58 +01:00
Filip Kucharczyk
d287f480e5
Fix for combining raw and regular filters
2020-03-03 15:18:58 +01:00
Bastien Gérard
d85f0e6226
Merge branch 'feature/allow-setting-read-concern-queryset' of git://github.com/abarto/mongoengine into abarto-feature/allow-setting-read-concern-queryset
2020-03-02 23:04:42 +01:00
Bastien Gérard
cfb4943986
reformat with black
2020-03-02 22:49:21 +01:00
Bastien Gérard and GitHub
b453a96211
Merge pull request #2272 from leodmgs/add-return-docstr-to-save-function
...
Add return info in the save function docstring
2020-03-02 21:27:39 +01:00
Leonardo Domingues
81f9b351b3
Add return info in the save function docstring
2020-02-21 19:14:34 -03:00
Agustin Barto
4bca3de42f
Add support for the elemMatch projection operator. Add basic tests to the fields queryset method.
2020-02-14 16:43:07 -03:00
Bastien Gérard and GitHub
235b1a3679
Merge pull request #2265 from bagerard/fix_ci_lib_drop_python2_support
...
fix indirect library version (zipp) that dropped python2 support recently
2020-02-08 13:45:13 +01:00
Bastien Gérard
450658d7ac
fix indirect library version that dropped python2 support recently
2020-02-04 22:51:02 +01:00
Agustin
8e17e42e26
Allow setting read_concern
2020-01-24 13:11:07 -03:00
Bastien Gérard
2d6a4c4b90
update changelog
2020-01-23 23:36:03 +01:00
Bastien Gérard
38703acc29
fix complex datetime field invalid string set
2020-01-23 23:33:23 +01:00
Bastien Gérard
095217e797
remove methods that were derecated in 2013...
2020-01-13 23:53:24 +01:00
Bastien Gérard
86e965f854
remove very old deprecated method
2020-01-13 23:45:42 +01:00
Bastien Gérard
57db68dc04
update changelog
2020-01-13 23:34:43 +01:00
Bastien Gérard
72de6d67c7
Bump dev status classifier
2020-01-13 23:33:02 +01:00
Bastien Gérard and GitHub
b2c3acd025
Merge pull request #2244 from bagerard/mongodb_40
...
Mongodb 40
2020-01-13 23:26:11 +01:00
Bastien Gérard
605de59bd0
improve travis + fix tox mg310
2020-01-12 21:37:32 +01:00
Bastien Gérard
e0565ddac5
update changelog
2020-01-12 21:31:28 +01:00
Bastien Gérard
18b68f1b80
update travis mongo 4.0 to latest 4.0.13
2020-01-12 21:29:18 +01:00
Bastien Gérard
ea88806630
Merge branch 'master' of github.com:MongoEngine/mongoengine into mongodb_40
2020-01-12 21:16:48 +01:00
Bastien Gérard
412bed0f6d
fix bug in legacy .count due to with_limit_and_skip that was missing
2020-01-12 11:04:05 +01:00
Bastien Gérard
53cf26b9af
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_count_documents_deprecation
2020-01-12 10:07:36 +01:00
Bastien Gérard
d738462139
Fix bug introduced in -1.19 related to DictField validate failing without default connection
2020-01-11 23:17:05 +01:00
Bastien Gérard
2fa48cd9e5
fix for pymongo < 3.7
2020-01-07 22:24:55 +01:00
Bastien Gérard
e64a7a9448
reformat with latest black
2020-01-07 22:11:24 +01:00
Bastien Gérard and GitHub
9490ad2bf7
Merge pull request #2238 from bagerard/test_latest_pymongo
...
include latest pymongo version in travis
2020-01-07 09:35:49 +01:00
Bastien Gérard
84f3dce492
fix flake8 findings
2020-01-05 22:50:19 +01:00
Bastien Gérard
60c42dddd5
finalize code related to count_documents migration
2020-01-05 22:29:13 +01:00
Bastien Gérard
f93f9406ee
improve doc next to code
2020-01-05 21:08:20 +01:00
Bastien Gérard
705c55ce24
update tox file to account for mg310
2020-01-05 21:01:17 +01:00
Bastien Gérard
928770c43a
switching to count_documents
2020-01-05 21:01:03 +01:00
Bastien Gérard
59fbd505a0
include latest pymongo version in travis
2020-01-05 20:20:13 +01:00
Bastien Gérard and GitHub
1cc20c9770
Merge pull request #2237 from timgates42/bugfix/typo_thoroughly
...
Fix simple typo: thorougly -> thoroughly
2020-01-05 11:17:49 +01:00
Tim Gates
f8f267a880
Fix simple typo: thorougly -> thoroughly
...
Closes #2236
2020-01-05 20:48:16 +11:00
erdenezul and GitHub
80ea1f6883
Merge pull request #2233 from bagerard/release_0_19_1
...
Bump version to 0.19.1 + force pillow to be < 7.0.0
2020-01-03 21:11:17 +01:00
Bastien Gérard
75ee282a3d
black setup.py to please CI
2020-01-03 14:15:24 +01:00
Bastien Gérard
4edad4601c
Bump version to 0.19.1 + force pillow to be < 7.0.0
2020-01-03 14:03:17 +01:00
Bastien Gérard
152b51fd33
improve gridfs example (properly opening file)
2019-12-29 14:36:50 +01:00
erdenezul and GitHub
66a0fca4ad
Merge pull request #2229 from bagerard/improve_doc_gridfs
...
improve doc of GridFS
2019-12-27 16:46:38 +01:00
Bastien Gérard
e7c7a66cd1
improve doc of GridFS, emphasize that subsequent call to read() requires to rewind the file with seek(0)
2019-12-27 10:38:03 +01:00
Bastien Gérard
b3dbb87c3c
improve doc of aggregate kwargs
2019-12-27 10:06:27 +01:00
erdenezul and GitHub
3d45538998
Merge pull request #2227 from bagerard/test_py38
...
Test py38
2019-12-27 07:05:12 +01:00
erdenezul and GitHub
8df9d3fef9
Merge pull request #2228 from bagerard/change_aggregate_interface
...
change & deprecate .aggregate interface to mimic pymongo's interface
2019-12-27 07:04:25 +01:00
Bastien Gérard
99e660c66d
update changelog
2019-12-27 09:32:05 +01:00
Bastien Gérard
aa02f87b69
change & deprecate .aggregate api to mimic pymongo's interface + separate the aggregation tests from the large test_queryset.py file
2019-12-27 09:23:15 +01:00
Bastien Gérard
f0d1ee2cb4
update travis config + improve readmecode
2019-12-26 21:03:34 +01:00
Bastien Gérard
ca4967311d
update python 3.8 config
2019-12-26 21:00:34 +01:00
Bastien Gérard
65eb6ab611
Merge branch 'master' of github.com:MongoEngine/mongoengine into test_py38
2019-12-26 20:58:31 +01:00
Bastien Gérard
1cb2f7814c
Merge branch 'mcsimps2-allow-periods-in-dict'
2019-12-26 20:53:50 +01:00
Bastien Gérard
b5485b16e6
Merge branch 'allow-periods-in-dict' of https://github.com/mcsimps2/mongoengine into mcsimps2-allow-periods-in-dict
2019-12-26 20:47:46 +01:00
Bastien Gérard
62c8597a3b
fix pypi deployment version match
2019-12-24 11:15:23 +01:00
Bastien Gérard
488604ff2e
test python 3.8
2019-12-24 00:00:15 +01:00
erdenezul and GitHub
bd88a17b8e
Merge pull request #2224 from bagerard/release_0_19_0
...
Release 0 19 0
2019-12-22 18:46:38 +01:00
Bastien Gérard
8e892dccfe
document recent merged PR in changelog
2019-12-20 23:51:01 +01:00
Bastien Gérard
c22eb34017
Merge branch 'master' of github.com:MongoEngine/mongoengine into release_0_19_0
2019-12-20 23:49:41 +01:00
Bastien Gérard and GitHub
dcf3edb03e
Merge pull request #2094 from divomen/negative_indexes_in_list
...
Supported updates of an array by negative index
2019-12-20 23:48:00 +01:00
Bastien Gérard
c85b59d3b5
Merge branch 'master' of github.com:MongoEngine/mongoengine into negative_indexes_in_list
2019-12-20 23:27:51 +01:00
Bastien Gérard
1170de1e8e
added explicit doc for order_by #2117
2019-12-20 23:20:15 +01:00
Bastien Gérard
332bd767d4
minor fixes in tests
2019-12-20 23:20:15 +01:00
erdenezul and GitHub
0053b30237
Merge pull request #2217 from bagerard/improve_inheritance_doc
...
provide additional details on how inheritance works in doc
2019-12-20 22:43:45 +01:00
Bastien Gérard
d44533d956
completed the changelog with missing details
2019-12-20 22:41:22 +01:00
Bastien Gérard
12d8bd5a22
bump version to 0.19.0
2019-12-20 22:11:43 +01:00
Bastien Gérard
ae326678ec
updated changelog for upcoming 0.19.0
2019-12-20 22:09:04 +01:00
Bastien Gérard and GitHub
8d31f165c0
Merge pull request #2182 from daewok/fix-embedded-document-equality-with-lazy-refs
...
Fix EmbeddedDocument equality with LazyReferenceFields
2019-12-16 23:57:50 +01:00
Eric Timmons
cfd4d6a161
Add breaking change to changelog for LazyReferenceField representation in _data
2019-12-15 20:46:48 -05:00
Eric Timmons
329f030a41
Always store a DBRef, Document, or EmbeddedDocument in LazyReferenceField._data
...
This is required to handle the case of equality tests on a LazyReferenceField
with dbref=True when comparing against a field instantiated with an ObjectId.
2019-12-15 20:46:48 -05:00
Eric Timmons
68dc2925fb
Add LazyReferenceField with dbref=True to embedded_document equality test
2019-12-15 20:21:22 -05:00
Eric Timmons
0d4e61d489
Add daewok to AUTHORS per contributing guidelines
2019-12-15 20:21:18 -05:00
Eric Timmons
dc7b96a569
Make python value for LazyReferenceFields be a DBRef
...
Previously, when reading a LazyReferenceField from the DB, it was stored
internally in the parent document's _data field as an ObjectId. However, this
meant that equality tests using an enclosing EmbeddedDocument would not return
True when the EmbeddedDocument being compared to contained a DBRef or Document
in _data. Enclosing Documents were largely unaffected because they look at the
primary key for equality (which EmbeddedDocuments lack).
This makes the internal Python representation of a LazyReferenceField (before
the LazyReference itself has been constructed) a DBRef, using code identical to
ReferenceField.
2019-12-15 20:20:59 -05:00
Eric Timmons
50882e5bb0
Add failing test
...
Test that __eq__ for EmbeddedDocuments with LazyReferenceFields works as
expected.
2019-12-15 20:20:59 -05:00
Bastien Gérard
280a73af3b
minor fix in doc of NULLIFY to improve #834
2019-12-14 21:44:59 +01:00
Bastien Gérard
d8c0631dab
added entry in changelog for py2py3 compatibility
2019-12-14 21:23:28 +01:00
Bastien Gérard
9166ba91d7
fix minor styling issue
2019-12-14 16:11:59 +01:00
Bastien Gérard
6bc4e602bb
additional fix
2019-12-14 00:05:48 +01:00
Bastien Gérard
45a7520fc3
make use past.builtins.long
2019-12-13 23:57:18 +01:00
Bastien Gérard
64c0cace85
fix from code review regarding py2py3 compat
2019-12-13 23:57:18 +01:00
Bastien Gérard
82af5e4a19
fix small finding from review on py2py3 compat
2019-12-13 23:54:42 +01:00
Bastien Gérard
7e0ba1b335
clean remaining references to 2to3
2019-12-13 23:52:59 +01:00
Bastien Gérard
44b7f792fe
fix benchmarks prints
2019-12-13 23:52:59 +01:00
Bastien Gérard
a3e432eb68
remove references to '2to3' in doc, travis, etc
2019-12-13 23:46:13 +01:00
Bastien Gérard
009f9a2b14
set dist as xenial to avoid relying on flaky travis default dist
2019-12-13 23:43:04 +01:00
Bastien Gérard
2ca905b6e5
Finalize python2/3 codebase compatibility and get rid of 2to3
2019-12-13 23:43:04 +01:00
Bastien Gérard
3b099f936a
provide additional details on how inheritance works in doc
2019-12-13 21:32:45 +01:00
Bastien Gérard and GitHub
4d6ddb070e
Merge pull request #2210 from Pacu2/fix/implement-bool-on-q-and-qcombination
...
Add __bool__ to Q and QCombination
2019-12-13 20:53:33 +01:00
Matt Simpson
b205314424
Add ability for dict keys to have . or $ in MongoDB >= 3.6
...
Starting in MongoDB >= 3.6, it is valid for dictionary keys to have $ or . in them as long as they don't start with $. Additional tests added.
2019-12-10 11:09:29 -05:00
Filip Kucharczyk
e83132f32c
Note deprecation of 'empty' in changelog
2019-12-10 11:54:52 +01:00
Filip Kucharczyk
1b38309d70
Revert 'empty' usage to it's previous state
2019-12-06 10:14:22 +01:00
Filip Kucharczyk
6e8196d475
Python 2.x compatibility
2019-12-05 01:41:48 +01:00
Filip Kucharczyk
90fecc56dd
Reformat with black
2019-12-05 01:33:35 +01:00
Filip Kucharczyk
d3d7f0e670
Changelog
2019-12-05 01:18:29 +01:00
Filip Kucharczyk
37ffeafeff
Replace 'pip' with 'python -m pip install' in docs
2019-12-05 01:13:05 +01:00
Filip Kucharczyk
abc159b7b9
Update Contributing, changelog
2019-12-05 01:10:54 +01:00
Filip Kucharczyk
648b28876d
Rename requirements-lint.txt to requirements-dev.txt
2019-12-05 00:57:17 +01:00
Filip Kucharczyk
5b9f2bac87
Add pre-commit
2019-12-05 00:54:20 +01:00
Filip Kucharczyk
17151f67c2
Reformat repo with pre-commit hooks
2019-12-05 00:53:39 +01:00
Filip Kucharczyk
5f14d958ac
Sort imports
2019-12-05 00:46:57 +01:00
Filip Kucharczyk
bd6c52e025
Changelog
2019-12-05 00:30:03 +01:00
Filip Kucharczyk
cb77bb6b69
Implement __bool__ on Q and QCombination
2019-12-05 00:27:41 +01:00
Bastien Gérard
78b240b740
updated changelog + improved query_counter test
2019-12-04 21:51:07 +01:00
Bastien Gérard and GitHub
7e30f00178
Merge pull request #2195 from EloiZalczer/master
...
Added alias parameter in query_counter
2019-12-04 21:50:41 +01:00
Bastien Gérard and GitHub
35310dbc73
Merge pull request #2204 from Pacu2/2203/ability-to-compare-q-objects
...
Add __eq__ to Q and Q operations
2019-12-04 20:58:04 +01:00
Filip Kucharczyk
af82c07acc
Reformat with black
2019-12-03 09:19:02 +01:00
Filip Kucharczyk
3f75f30f26
Run black
2019-12-03 09:03:49 +01:00
Filip Kucharczyk
f7f0e10d4d
Update changelog
2019-12-03 00:54:53 +01:00
Filip Kucharczyk
091238a2cf
Update Authors
2019-12-03 00:54:46 +01:00
Filip Kucharczyk
0458ef869e
Add __eq__ to Q and Q operations
2019-12-03 00:44:13 +01:00
Eloi Zalczer
0bf08db7b9
Added test case for query_counter alias
2019-12-02 10:07:33 +01:00
Eloi Zalczer
d3420918cd
Added alias parameter in query_counter
2019-11-18 17:16:06 +01:00
Bastien Gérard and GitHub
138e759161
Merge pull request #2187 from bagerard/improve_error_message_InvalidDocumentError
...
Improve error message from InvalidDocumentError
2019-11-08 21:27:17 +01:00
Bastien Gérard and GitHub
f1d6ce7d12
Merge pull request #2189 from jangop/patch-1
...
Specify version of requirement
2019-11-08 21:25:41 +01:00
Jan Philip Göpfert and GitHub
ff749a7a0a
Specify version of requirement
...
In `README.rst`, a version of `six` of at least `1.10.0` is specified. This was missing from the requirements, potentially leading to broken installations.
2019-11-06 10:35:16 +01:00
Bastien Gérard and GitHub
bff78ca8dd
Merge pull request #2188 from bagerard/convert_assertions
...
Convert assertions
2019-11-05 20:06:59 +01:00
Bastien Gérard
81647d67a0
fix recent tests update with unittest2pytest
2019-10-31 23:06:40 +01:00
Bastien Gérard
d8924ed892
remove inheritance from unittest.TestCase on basic test classes
2019-10-31 23:02:28 +01:00
Bastien Gérard
799cdafae6
remove references to nose
2019-10-31 23:02:28 +01:00
Bastien Gérard
bc0c55e49a
improve tests health (flake8 warnings)
2019-10-31 23:01:27 +01:00
Bastien Gérard
c61c6a8525
fix == None assertions
2019-10-31 22:59:49 +01:00
Bastien Gérard
3e764d068c
fix remaining assertRaises
2019-10-31 22:59:49 +01:00
Bastien Gérard
ac25f4b98b
ran unittest2pytest
2019-10-31 22:59:49 +01:00
Bastien Gérard and GitHub
aa6ff8c84a
Merge pull request #2157 from bagerard/switch_pytest
...
Switch to pytest as runner
2019-10-31 22:50:39 +01:00
Bastien Gérard
37ca79e9c5
fix black formatting
2019-10-31 22:39:53 +01:00
Bastien Gérard
6040b4b494
update changelog
2019-10-31 21:33:19 +01:00
Bastien Gérard
51ea3e3c6f
fix for recent coverage/coveralls compatibility issue
2019-10-31 20:39:49 +01:00
Bastien Gérard
5a16dda50d
fix coverage for pytest runner
2019-10-31 20:39:49 +01:00
Bastien Gérard
bbfa978861
switch test runner from nose to pytest
2019-10-31 20:39:49 +01:00
Bastien Gérard
54ca7bf09f
fix associated test to avoid discrepencies btw py2 and py3
2019-10-28 23:33:37 +01:00
Bastien Gérard
8bf5370b6c
Improve error message from InvalidDocumentError whenever an embedded document has a bad shape (e.g due to migration)
2019-10-28 22:05:13 +01:00
Bastien Gérard and GitHub
ecefa05e03
Merge pull request #2174 from bagerard/upgrade_latest_pymongo_travis
...
add latest pymongo 3.9 as part of the CI
2019-10-28 21:22:00 +01:00
erdenezul and GitHub
e013494fb2
Merge pull request #2177 from bagerard/fix_few_deprecation_warnings
...
fix 2 pymongo deprecation warnings
2019-10-22 15:56:39 +02:00
erdenezul and GitHub
4853f74dbf
Merge pull request #2184 from bagerard/docs_logging
...
Documented how pymongo.monitoring can be used with MongoEngine
2019-10-21 20:07:42 +08:00
erdenezul and GitHub
6f45ee6813
Merge pull request #2176 from bagerard/fix_docstring_pycharm
...
Fix docstring format to improve pycharm inspection
2019-10-21 20:06:52 +08:00
Bastien Gérard
c60ed32f3a
Documented how pymongo.monitoring can be used with MongoEngine
2019-10-16 21:25:17 +02:00
Bastien Gérard and GitHub
178851589d
Merge pull request #2175 from bagerard/document_no_async_driver_support
...
Document no async driver support
2019-10-16 20:34:26 +02:00
Bastien Gérard
5bcc679194
fix 2 pymongo deprecation warnings
2019-10-10 22:55:44 +02:00
Bastien Gérard
1e17b5ac66
Fix docstring format to improve pycharm inspection
2019-10-05 14:24:54 +02:00
Bastien Gérard
19f12f3f2f
document pymongo in RTD and make it point to github
2019-10-04 21:51:12 +02:00
Bastien Gérard
71e8d9a490
Added a FAQ to doc and Document the fact that we dont support motor
2019-10-04 21:51:12 +02:00
Bastien Gérard
e3cd553f82
add latest pymongo 3.9 as part of the CI
2019-10-04 21:46:47 +02:00
Bastien Gérard
b61c8cd104
fix tox envs
2019-10-01 22:17:19 +02:00
Bastien Gérard
8f288fe458
add mongodb 4.0 to travis and docs
2019-09-29 22:50:14 +02:00
erdenezul and GitHub
02a920feea
Merge pull request #2166 from bagerard/add_aggregate_tutorial
...
Document Model.objects.aggregate entrypoint with an example
2019-09-17 21:07:42 +02:00
Bastien Gérard
be2c4f2b3c
fix formatting and improve doc based on review
2019-09-16 21:15:35 +02:00
Bastien Gérard
7ac74b1c1f
Document Model.objects.aggregate entrypoint with an example
2019-09-15 23:27:34 +02:00
Bastien Gérard and GitHub
933cb1d5c7
Merge pull request #2144 from 0a69911a/master
...
Implement collation for queryset
2019-09-11 23:27:25 +02:00
Bastien Gérard and GitHub
6203e30152
Merge pull request #2160 from vainu-arto/fix-trust-default-cursor-timeout
...
Only set no_cursor_timeout when requested
2019-09-11 22:09:56 +02:00
Bastien Gérard
7d94af0e31
add test coverage for no_cursor_timeout to support recent fix
2019-09-11 21:53:30 +02:00
erdenezul and GitHub
564a2b5f1e
Merge pull request #2153 from erdenezul/misleading_bulkwrite_error
...
Change misleading error message
2019-09-04 09:42:10 +02:00
Erdenezul Batmunkh
1dbe7a3163
Add log in changelog
2019-09-03 16:17:09 +02:00
Arto Jantunen
47f8a126ca
Only set no_cursor_timeout when requested
...
Previously this was always set for all requests. The parameter is only
documented as supported for certain queries, so this was probably wrong.
Mongo version 4.2 fails update queries that have this parameter set making
mongoengine unusable there. Fixes #2148 .
2019-09-03 14:36:06 +03:00
Bastien Gérard
693195f70b
fix test_pickable that was brought back to life recently
2019-08-31 22:28:31 +03:00
Bastien Gérard
2267b7e7d7
rename remaining files for pytest migration
2019-08-30 16:27:56 +03:00
Erdenezul Batmunkh
a06e605e67
Add BulkWriteError exception
2019-08-29 11:11:27 +02:00
otrofimov
47c67ecc99
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
2019-08-29 11:48:07 +03:00
Bastien Gérard and GitHub
4c4b7cbeae
Merge pull request #2156 from bagerard/rename_test_files_for_pytest_migration
...
rename all test files so that they are prefixed by test
2019-08-28 16:17:38 +03:00
Bastien Gérard
ddececbfea
rename all test files so that they are prefixed by test_{orginal_filename}.py
2019-08-28 16:01:44 +03:00
otrofimov
71a6f3d1a4
test_collation:
...
Added test with `pymongo.collation.Collation` object
Readable list of BlogPost names for test
2019-08-21 18:26:10 +03:00
Erdenezul Batmunkh
e86cf962e9
Change misleading error message
2019-08-21 13:08:30 +02:00
erdenezul and GitHub
99a58d5c91
Merge pull request #2149 from AliMirlou/patch-1
...
Fix small typo
2019-08-21 11:04:20 +02:00
Ali Mirlou and GitHub
eecbb5ca90
Fix small typo
2019-08-20 19:53:49 +04:30
otrofimov
fbb3bf869c
compatibility with black
2019-08-08 15:56:20 +03:00
otrofimov
b887ea9623
Implement collation for queryset
2019-08-08 11:55:45 +03:00
Bastien Gérard
c68e3e1238
Add test case for list update by negative index
2019-07-24 21:37:16 +02:00
Bastien Gérard
c5080e4030
Merge branch 'master' of github.com:MongoEngine/mongoengine into negative_indexes_in_list
2019-07-24 21:14:55 +02:00
Bastien Gérard and GitHub
0d01365751
Merge pull request #2131 from NMFR/master
...
Set default database when using mongomock.
2019-07-22 11:56:56 +02:00
Nuno Rodrigues
f4a06ad65d
Optimize database name getter calls
2019-07-22 08:45:35 +00:00
Nuno Rodrigues
05a22d5a54
Extract test to its own method
2019-07-22 08:42:17 +00:00
Nuno Rodrigues
2424ece0c5
Fix a linting error
2019-07-16 13:40:46 +00:00
Nuno Rodrigues
2d02551d0a
Add test
2019-07-15 17:54:46 +01:00
Stefan Wójcik and GitHub
ac416aeeb3
Improve BaseDocument.from_json tests and documentation ( #2127 )
2019-07-15 12:15:55 +02:00
Stefan Wojcik
d09af430e8
Fix formatting of the changelog – part 2
...
RTD didn't render it properly previously.
Refs #2105
2019-07-15 09:57:48 +02:00
Stefan Wojcik
79454b5eed
Fix formatting of the changelog
...
RTD didn't render it properly previously.
Refs #2105
2019-07-15 09:54:18 +02:00
Stefan Wojcik
921c1fa412
Dummy commit to confirm that the new RTD webhook works
2019-07-15 09:50:29 +02:00
Stefan Wojcik
1aba145bc6
Split requirements into requirements.txt and requirements-lint.txt
...
I'm doing this because it makes sense to separate which requirements are
needed to develop the package and which are purely needed for static code
analysis. That said, the trigger for this commit was that ReadTheDocs
automatically tries to install everything that's in requirements.txt and,
since `black` isn't available on Python 2.7, it was failing. See
https://readthedocs.org/projects/mongoengine-odm/builds/9371765/ .
Refs #2105
2019-07-15 09:32:26 +02:00
Nuno Rodrigues
290d9df3eb
Set default database when using mongomock.
...
When passing host `mongomock://localhost/some-default-database` to `connect` the default database was `"test"` instead of `"some-default-database"`.
Fixes : #2130
2019-07-12 13:33:19 +01:00
Stefan Wójcik and GitHub
aa76ccdd25
Fix Document._object_key ( #2125 )
...
Previous implementation of `Document._object_key` was *pretending* to work on
MongoEngine-level fields (e.g. using "pk" instead of "_id" and separating
nested field parts by "__" instead of "."), but then it was also attempting to
transform field names from the `shard_key` into DB-level fields.
This, expectedly, didn't really work well. Most of the test cases added in this
commit were failing prior to the code fixes.
2019-07-09 12:08:26 +02:00
Andreas Doll and Stefan Wójcik
abe8070c36
Document register_connection arguments in correct order ( #2121 )
...
Put the documentation of the parameter 'name' of the function
'register_connection' in order of appearance in the function signature.
2019-07-08 14:16:09 +02:00
Bastien Gérard and GitHub
2d28c258fd
Merge pull request #2115 from bagerard/use_globals_in_travis_yml
...
Use global constants for mongo/pymongo in travis.yml
2019-07-03 11:47:35 +02:00
Stefan Wójcik and GitHub
1338839b52
Update changelog.rst
2019-07-03 11:18:56 +02:00
Stefan Wojcik
058203a0ec
More changelog tweaks [ci skip]
...
The main change is that we're now using double backticks (``), which are the
correct way to format code in an RST file.
2019-07-03 11:12:25 +02:00
Stefan Wojcik
8fdf664968
Changelog tweaks [ci skip]
2019-07-03 11:08:51 +02:00
Stefan Wójcik and GitHub
50555ec73e
Better management of the automatic "_cls" field ( #2112 )
...
* Rename BaseQuerySet._initial_query to BaseQuerySet._cls_query
This new name more accurately reflects the purpose of the dict. It is either
empty for documents that don't use inheritance or it contains a `{"_cls": ...}`
shape query. There was nothing "initial" about it per se.
* Drop read_preference as a kwarg on BaseQuerySet.__call__/filter
It was a poor design choice to offer two different ways to do the same thing:
1. `SomeDoc.objects(foo=bar, bar=baz).read_preference(...)`
2. `SomeDoc.objects(foo=bar, bar=baz, read_preference=...)`
Option 1 is good because it's immediately obvious which part defines the query
to be used and which part defines the read preference.
Option 2 is bad because you don't immediately know whether `read_preference`
is a query kwarg or a reserved keyword with some special behavior. If you
wanted to be particularly cruel, you could even write
`SomeDoc.objects(foo=bar, read_preference=..., bar=baz)`.
THIS IS A BREAKING CHANGE. From now on you have to use the
`BaseQuerySet.read_preference(...)` method.
* Add a BaseQuerySet.clear_cls_query method + get rid of the class_check kwarg
This is similar to what the previous commit did to read preference except that
in this case we were still missing a `BaseQuerySet` method for clearing the
`_cls` query.
Now, instead of the undocumented, untested, and confusing interface:
`ParentDoc.objects(foo=bar, bar=baz, class_check=False)`
We do:
`ParentDoc.objects(foo=bar, bar=baz).clear_cls_query()`
2019-07-03 11:07:55 +02:00
Bastien Gérard
951a532a9f
additional fix in travis/tox
2019-07-03 09:15:28 +02:00
Bastien Gérard
e940044603
fixes in .travis.yml and tox.ini based on PR review
2019-07-02 23:06:31 +02:00
Bastien Gérard
babfbb0fcd
Merge branch 'master' of github.com:MongoEngine/mongoengine into use_globals_in_travis_yml
2019-07-02 22:57:03 +02:00
Stefan Wojcik
bbed312bdd
Final changelog tweaks [ci skip]
2019-07-02 18:42:50 +02:00
Stefan Wojcik
b593764ded
One more changelog tweak [ci skip]
2019-07-02 18:35:29 +02:00
Stefan Wojcik
483c840fc8
One more changelog tweak [ci skip]
2019-07-02 18:29:28 +02:00
Stefan Wojcik
de80f0ccff
Clean up the changelog [ci skip]
...
Mostly making sure that code is formatted using backticks and that wording and
punctuation are consistent.
2019-07-02 18:28:04 +02:00
Stefan Wójcik and GitHub
d0b87f7f82
Drop the deprecated "format" param from BaseQuerySet.explain ( #2113 )
...
That option was pretty useless. You can very easily do:
```
import pprint
(...)
plan = SomeDoc.objects(...).explain()
pprint.pformat(plan)
```
2019-07-01 10:18:47 +02:00
Bastien Gérard
bf32d3c39a
Merge branch 'master' of github.com:MongoEngine/mongoengine into use_globals_in_travis_yml
2019-06-30 21:11:42 +02:00
Bastien Gérard and GitHub
bc14f2cdaa
Merge pull request #2083 from bagerard/improve_travis_yml2
...
add pypy3 back to travis and improve python 3.7 integration
2019-06-30 21:11:00 +02:00
Bastien Gérard
06a21e038a
Use global constants for mongo/pymongo in travis.yml
2019-06-30 21:04:23 +02:00
Bastien Gérard
4d5eba317e
convert travis test on latest python/mongo/pymongo from python 3.6 to 3.7
2019-06-30 20:55:19 +02:00
Bastien Gérard
d37a30e083
improve doc (based on review)
2019-06-30 20:46:40 +02:00
Stefan Wójcik and GitHub
9170eea784
Rename MongoEngineConnectionError to ConnectionFailure ( #2111 )
...
I originally changed the exception name from `ConnectionError` to
`MongoEngineConnectionError` in
https://github.com/MongoEngine/mongoengine/pull/1428/commits/b02904ee750a30f8e2246a326376b40358543101 ,
inspired by landscape.io's package health report, which argued that
`ConnectionError` is already a built-in exception in Python 3 (which it is:
https://docs.python.org/3/library/exceptions.html#ConnectionError ).
I do agree that we shouldn't override built-in exceptions. [0] That said, it’s
silly to add a "MongoEngine" prefix to any class within the `mongoengine`
module (and *especially* to *just one* exception class out of many). I've
decided to do what PyMongo does (
https://github.com/mongodb/mongo-python-driver/blob/8855a510a80a30268ffd4b90be65fb26929648e2/pymongo/errors.py#L59 )
and call this exception `ConnectionFailure`.
Note that this is a breaking change and people will need to rename
`MongoEngineConnectionError`s in their code to `ConnectionFailure`. Moreover,
if they use PyMongo's `ConnectionFailure` for anything, they'll need to take
extra care to avoid conflicts, e.g. by using:
```
from mongoengine import ConnectionFailure as MongoEngineConnectionFailure
```
[0] Note that some popular packages still overwrite `ConnectionError`, e.g.
https://github.com/kennethreitz/requests/blob/4983a9bde39c6320aa4f3e34e50dac6e263dab6f/requests/exceptions.py#L32
or
https://github.com/andymccurdy/redis-py/blob/0be4d2920684345eb52115c7142c39d65356e7d4/redis/exceptions.py#L8
2019-06-30 09:23:32 +02:00
Stefan Wojcik
2769967e1e
Update the changelog [ci skip]
2019-06-27 17:41:29 +02:00
Stefan Wójcik and GitHub
609f50d261
Fix the duplicate ListField max_length test ( #2110 )
...
This is a follow-up after #2107 .
Not sure what happened here, but in
https://github.com/MongoEngine/mongoengine/pull/2107/commits/87194856ecc5076bec2a186bae60c5d5b25c01ed
I committed a copy-paste of the same test instead of a test validating the
max_length behavior along with a "set" operator.
2019-06-27 16:45:31 +02:00
Stefan Wójcik and GitHub
82f0eb1cbc
Add a max_length param to the ListField ( #2107 )
...
This is similar to the `max_length` param of a `StringField`.
Sometimes you don't want your lists to be able to grow indefinitely.
2019-06-27 15:07:02 +02:00
Stefan Wójcik and GitHub
b47669403b
Format the codebase using Black ( #2109 )
...
This commit:
1. Formats all of our existing code using `black`.
2. Adds a note about using `black` to `CONTRIBUTING.rst`.
3. Runs `black --check` as part of CI (failing builds that aren't properly formatted).
2019-06-27 13:05:54 +02:00
Stefan Wojcik
91899acfe5
Clarify unack'd write concern not returning the deleted count [ci skip]
2019-06-26 15:14:43 +02:00
Stefan Wójcik and GitHub
ffedd33101
Drop support for positional arguments when instantiating a document ( #2103 )
...
For example, if you had the following class:
```
class Person(Document):
name = StringField()
age = IntField()
```
You could instantiate an object of such class by doing one of the following:
1. `new_person = Person('Tom', 30)`
2. `new_person = Person('Tom', age=30)`
3. `new_person = Person(name='Tom', age=30)`
From now on, only option (3) is allowed.
Supporting positional arguments may sound like a reasonable idea in this
heavily simplified example, but in real life it's almost never what you want
(especially if you use inheritance in your document definitions) and it may
lead to ugly bugs. We should not rely on the *order* of fields to match a given
value to a given name.
This also helps us simplify the code e.g. by dropping the confusing (and
undocumented) `BaseDocument._auto_id_field` attribute.
2019-06-26 11:31:11 +02:00
Bastien Gérard
c9ed930606
Add a documentation page for validation
2019-06-25 22:31:48 +02:00
Stefan Wojcik
af292b0ec2
Bump version to v0.18.2
2019-06-25 16:52:31 +02:00
Stefan Wojcik
1ead7f9b2b
Add changelog entries for v0.18.2
2019-06-25 16:51:56 +02:00
Stefan Wojcik
5c91877b69
Fix the Travis deployment condition
...
See https://github.com/MongoEngine/mongoengine/issues/2104 for details.
For now I'm hardcoding `$MONGODB = 3.4.17` just to get a release out there,
but we should probably use the globals going forward. Will do that in
a follow-up commit once I get the `travis-conditions` gem up and running and
hence can test `.travis.yml` changes without deploying.
2019-06-25 16:48:51 +02:00
Stefan Wojcik
e57d834a0d
Fix automated tests for py3
2019-06-25 12:41:59 +02:00
Stefan Wojcik
0578cdb62e
Cleaner loop using itertools.count()
2019-06-25 11:41:27 +02:00
Stefan Wojcik
b661afba01
Use set comprehensions for existing_fields & existing_db_fields
2019-06-25 11:34:31 +02:00
Bastien Gérard and GitHub
b1002dd4f9
Merge pull request #2097 from bagerard/remove_deprecated_pymongo_methods
...
remove pymongo deprecated methods: find_and_modify & remove
2019-06-24 22:03:58 +02:00
Stefan Wojcik
8e69008699
Fill in the PR # in the changelog [ci skip]
2019-06-24 16:00:21 +02:00
Stefan Wojcik
f45552f8f8
Drop support for positional arguments when instantiating a document
...
For example, if you had the following class:
```
class Person(Document):
name = StringField()
age = IntField()
```
You could instantiate an object of such class by doing one of the following:
1. `new_person = Person('Tom', 30)`
2. `new_person = Person('Tom', age=30)`
3. `new_person = Person(name='Tom', age=30)`
From now on, only option (3) is allowed.
Supporting positional arguments may sound like a reasonable idea in this
heavily simplified example, but in real life it's almost never what you want
(especially if you use inheritance in your document definitions) and it may
lead to ugly bugs. We should not rely on the *order* of fields to match a given
value to a given name.
This also helps us simplify the code e.g. by dropping the confusing (and
undocumented) `BaseDocument._auto_id_field` attribute.
2019-06-24 15:44:35 +02:00
Stefan Wojcik
a4fe091a51
Cleaner code & comments in BaseField.__set__
2019-06-21 13:51:53 +02:00
Stefan Wojcik
216217e2c6
Datastructures comments: fix typos and tweak formatting [ci skip]
2019-06-21 13:48:24 +02:00
Stefan Wojcik
799775b3a7
Slightly cleaner docstring of BaseQuerySet.no_sub_classes [ci skip]
2019-06-20 12:18:58 +02:00
Stefan Wójcik and GitHub
ae0384df29
Improve Document.meta.shard_key docs ( #2099 )
...
This closes #2096 . Previous documentation of the shard_key meta attribute was
missing the crucial point that it really only matters if your collection is
sharded over a compound index.
2019-06-20 11:25:51 +02:00
Bastien Gérard
8f57279dc7
remove pymongo deprecated methods: find_and_modify & remove
2019-06-19 23:04:23 +02:00
Bastien Gérard and GitHub
e8dbd12f22
Merge pull request #2091 from bagerard/release_0_18_1
...
Bump version number and update changelog for 0.18.1
2019-06-18 22:56:57 +02:00
Bastien Gérard
ca230d28b4
fix typo in changelog
2019-06-18 22:18:10 +02:00
Bastien Gérard
c96065b187
Merge branch 'master' of github.com:MongoEngine/mongoengine into release_0_18_1
2019-06-18 22:17:06 +02:00
Bastien Gérard
2abcf4764d
minor fixes based on review of #2082
2019-06-18 22:15:53 +02:00
Dmitry Voronenkov
6a4c342e45
Supported updates of an array by negative index
2019-06-18 19:45:37 +03:00
Stefan Wójcik and GitHub
bb0b1e88ef
Split up custom PK field tests ( #2095 )
...
This more closely aligns with the rule that a single tests should test one
thing and one thing only. Previous code tested like 4 different things in a
single test and was hard to follow.
2019-06-18 15:43:46 +02:00
Bastien Gérard
63c9135184
Bump version number and update changelog for 0.18.1
2019-06-17 22:36:54 +02:00
Bastien Gérard and GitHub
7fac0ef961
Merge pull request #2082 from divomen/v0.18.0_fix
...
Fix a big issue when determine if there is a new document
2019-06-17 22:30:18 +02:00
Bastien Gérard
5a2e268160
Add test case to prevent regression
2019-06-17 22:19:41 +02:00
Stefan Wojcik
a4e4e8f440
Tweaks to the QuerySet.order_by docstring
2019-06-17 17:28:41 +02:00
Stefan Wojcik
b62ce947a6
Cleaner mongoengine.connection.__all__
2019-06-17 15:42:15 +02:00
Stefan Wojcik
9538662262
Slightly cleaner connection code
2019-06-17 15:34:11 +02:00
Stefan Wojcik
09d7ae4f80
More BaseDocument.__init__ documentation tweaks
2019-06-17 14:52:26 +02:00
Stefan Wojcik
d7ded366c7
Document params expected by BaseDocument.__init__ [ci skip]
2019-06-17 14:37:14 +02:00
Stefan Wójcik and GitHub
09c77973a0
Clean up how _changed_fields are set in BaseDocument._from_son ( #2090 )
2019-06-17 13:41:02 +02:00
Stefan Wojcik
22f3c70234
Fix PyMongo dependency in the readme [ci skip]
2019-06-17 09:41:41 +02:00
Stefan Wojcik
6527b1386f
Benchmarks: Python 3 tweaks + more consistent testing of small vs big docs
2019-06-17 09:31:51 +02:00
Bastien Gérard
baabf97acd
Merge branch 'master' of github.com:MongoEngine/mongoengine into v0.18.0_fix
2019-06-16 10:52:44 +02:00
Bastien Gérard
97005aca66
set dist as xenial to avoid relying on flaky travis default dist
2019-06-15 13:49:37 +02:00
Bastien Gérard
6e8ea50c19
"added another aggregation test"
...
This reverts commit 4c31193b82 .
2019-06-14 21:04:02 +02:00
Stefan Wojcik
1fcd706e11
Clearer docstring of Document._get_collection [ci skip]
2019-06-14 14:57:12 +02:00
Stefan Wojcik
008bb19b0b
Add a test covering basic Document operations
...
It covers operations such as:
1. Document initialization.
2. Accessing/setting attributes on a Document instance.
3. Serializing a Document instance (via `to_mongo`).
4. Deserializing a Document instance (via `_from_son`).
5. Serializing + saving a Document in the database (via `save`).
5. Loading a Document from the database + deserializing (via `Doc.objects[0]`).
And it does so for both basic flat documents and more complex nested docs.
2019-06-14 11:59:41 +02:00
Stefan Wojcik
023acab779
Clean up benchmark.py and move it to benchmarks/test_inserts.py
...
1. Removes the cascade=save tests. It's not an option I'd recommend using AND
it primarily matters if you have any reference fields in your document,
which is not the case in this script.
2. Uses PyMongo-v3.x-style write concern.
3. Removes an old docstring describing some random benchmark run from the past.
4. Removes unused parts of the code.
I'll add more tests to the "benchmarks/" directory in future commits.
2019-06-14 11:59:41 +02:00
Bastien Gérard
68e8584520
add pypy3 back to travis and improve python 3.7 integration
2019-06-13 23:29:02 +02:00
Bastien Gérard and GitHub
5d120ebca0
Merge pull request #2058 from bagerard/improve_travis_yml
...
Improve travis yml + add python3.7 to travis
2019-06-13 23:20:15 +02:00
Bastien Gérard
f91b89f723
remove dist:xenial as it recently became the default in travis
2019-06-13 23:07:25 +02:00
Bastien Gérard
1181b75e16
clean travis.yml
2019-06-13 22:50:19 +02:00
Bastien Gérard
5f00b4f923
refactor travis - mongo install and added python3.7
2019-06-13 22:50:19 +02:00
Bastien Gérard
4c31193b82
Revert "added another aggregation test"
...
This reverts commit d7285d43dd .
2019-06-13 20:53:56 +02:00
Dmitry Voronenkov
17fc9d1886
Fix a big issue when determine if there is a new document or we need to update.
...
With this issue all fields were update always (not only modified fields)
2019-06-13 19:58:44 +03:00
Bastien Gérard
d7285d43dd
added another aggregation test
2019-06-12 23:54:20 +02:00
Stefan Wojcik
aa8a991d20
Try a different deployment condition
...
This time my attempt is based on the output found in another job that didn't
trigger a deployment: https://travis-ci.org/MongoEngine/mongoengine/jobs/544664203
```
/home/travis/.travis/job_stages: line 660: expected `)'
/home/travis/.travis/job_stages: line 660: syntax error near `AND'
/home/travis/.travis/job_stages: line 660: ` if [[ ($TRAVIS_REPO_SLUG = "MongoEngine/mongoengine") && ($TRAVIS_PYTHON_VERSION = 2.7) && ($PYMONGO = 3.x AND $MONGODB = 3.4) && ("$TRAVIS_TAG" != "") ]]; then'
```
See 80ca6360c1f3ea073e3fcb65070ded0558514ffa and
40ba51ac43 for my previous attempts.
2019-06-12 12:19:36 +02:00
Stefan Wojcik
40ba51ac43
Try a different deployment condition
...
The previous one was a verbatim copy-paste of what TravisCI's Support suggested
to me, but sadly it didn't work. See
https://travis-ci.org/MongoEngine/mongoengine/jobs/544655132 . That build
should've triggered a deployment.
This time I'm trying a different syntax, primarily influenced by
https://docs.travis-ci.com/user/conditions-v1#boolean-operators .
2019-06-12 12:08:11 +02:00
Stefan Wojcik
d20430a778
Bump up waiting for MongoDB from 15s to 20s
...
I've noticed that `mongo --eval 'db.version()'` has been failing fairly
regularly in the last few weeks. Hopefully that extra 5s is enough.
2019-06-12 11:57:25 +02:00
Stefan Wojcik
f08f749cd9
Bump version to v0.18.0
2019-06-12 11:47:31 +02:00
Stefan Wojcik
a6c04f4f9a
Finalize the v0.18.0 changelog [ci skip]
2019-06-12 11:38:58 +02:00
Stefan Wojcik
15b6c1590f
Add extra context to the BaseDocument.validate docstring
2019-06-12 11:37:08 +02:00
Bastien Gérard and Stefan Wójcik
4a8985278d
Document inherited members for the Document, EmbeddedDocument, DynamicDocument, and DynamicEmbeddedDocument ( #2040 )
2019-06-12 11:33:56 +02:00
Stefan Wojcik
996618a495
Fix wording of an exception message in QuerySet.insert
2019-06-12 08:29:59 +02:00
erdenezul and GitHub
1f02d5fbbd
Merge pull request #1570 from erdenezul/remove_save_embedded
...
EmbeddedDocument should not have save method #1552
2019-06-11 16:15:53 +02:00
Erdenezul Batmunkh
c58b9f00f0
Add changelog
2019-06-11 15:53:50 +02:00
Stefan Wojcik
f131b18cbe
Make test_update_shard_key_routing more resilient
2019-06-11 15:50:22 +02:00
Stefan Wojcik
118a998138
Classify the QuerySet.aggregate change as a bugfix [ci skip]
2019-06-11 15:09:16 +02:00
Erdenezul Batmunkh
7ad6f036e7
Remove test
2019-06-11 13:16:33 +02:00
Erdenezul Batmunkh
1d29b824a8
Remove save method from test
2019-06-11 12:52:29 +02:00
Erdenezul Batmunkh
3caf2dce28
Merge branch 'master' into remove_save_embedded
2019-06-11 12:41:11 +02:00
Bastien Gérard
1fc5b954f2
fix typo in changelog
2019-06-10 22:38:37 +02:00
Stefan Wojcik
31d99c0bd2
Cleaner wording in the dev changelog
2019-06-10 11:26:47 +02:00
Bastien Gérard and GitHub
0ac59c67ea
Merge pull request #2068 from bagerard/fix_connection_auth_same_host
...
Fix connection issue when using different authentication in different dbs
2019-06-07 21:08:26 +02:00
Stefan Wojcik
8e8c74c621
Drop the unused mongodb_version attribute in IndexesTest
2019-06-07 12:35:38 +02:00
Stefan Wojcik
f996f3df74
Cleaner test_hint
2019-06-07 12:34:32 +02:00
Stefan Wojcik
9499c97e18
Clean up the .install_mongodb_on_travis.sh script
...
This is a leftover from #2066 . Since we no longer install MongoDB versions
v2.6 – v3.2, we no longer need this code.
2019-06-07 12:16:32 +02:00
erdenezul and GitHub
c1c81fc07b
Merge pull request #2070 from bagerard/improve_doc_of_custom_field_validation
...
Document the custom field validation feature
2019-06-05 22:30:40 +02:00
erdenezul and GitHub
072e86a2f0
Merge pull request #2069 from bagerard/some_refactoring
...
minor refactoring and additional of tests
2019-06-05 22:30:09 +02:00
Bastien Gérard
70d6e763b0
Document the custom field validation feature
2019-06-05 22:23:54 +02:00
Bastien Gérard
15f4d4fee6
fix tests for diff mongo vers
2019-06-05 21:51:21 +02:00
Bastien Gérard
82e28dec43
improved string operation code
2019-06-04 23:17:10 +02:00
Bastien Gérard
b407c0e6c6
add test for shard key routing (ported from https://github.com/closeio/mongoengine/commit/43f35f5 )
2019-06-04 23:17:10 +02:00
Bastien Gérard
27ea01ee05
refactored datetime to_mongo, separating parsing from str + added test
2019-06-04 23:16:26 +02:00
Bastien Gérard
7ed5829b2c
Add test on datetime field - parse datetime as str
2019-06-04 23:16:26 +02:00
Bastien Gérard and GitHub
5bf1dd55b1
Update mongomock example
...
Improved the mongomock example as reported in #2067
Fixes #2067
2019-06-04 22:56:52 +02:00
Bastien Gérard
36aebffcc0
update changelog
2019-06-04 22:39:44 +02:00
Bastien Gérard
84c42ed58c
Add tests
2019-06-04 22:35:42 +02:00
Bastien Gérard
9634e44343
Fix the issue that the same MongoClient gets re-used in case we connect to 2 databases on the same host (problematic when different users authenticate)
2019-06-04 22:12:46 +02:00
Bastien Gérard and GitHub
048a045966
Update connection/multiple databases docs
...
I observed that many people were confused by this so I thought I'd make the multiple databases example more explicit
2019-06-04 21:47:28 +02:00
Bastien Gérard and GitHub
a18c8c0eb4
Merge pull request #2049 from bagerard/save_to_mongo_call_in_save
...
Improve perf of Document.save
2019-06-01 15:00:44 +02:00
Bastien Gérard
5fb0f46e3f
fix changelog (py37 not yet in travis)
2019-06-01 11:16:29 +02:00
Bastien Gérard
962997ed16
fix flaky test due to signal receiver garbage collection
2019-06-01 11:13:28 +02:00
Bastien Gérard
daca0ebc14
update changelog
2019-06-01 11:13:28 +02:00
Bastien Gérard
9ae8fe7c2d
Improve perf of Doc.save by preventing a full to_mongo() call just to get the created variable
2019-06-01 11:13:28 +02:00
Bastien Gérard and GitHub
1907133f99
Merge pull request #2050 from bagerard/change_custom_field_validation_raise
...
custom field validator is now expected to raise a ValidationError
2019-06-01 10:45:43 +02:00
Stefan Wójcik and GitHub
4334955e39
Update the test matrix to reflect what's supported in 2019 ( #2066 )
...
Previously, we were running the test suite for several combinations of MongoDB,
Python, and PyMongo:
- PyPy, MongoDB v2.6, PyMongo v3.x (which really means v3.6.1 at the moment)
- Python v2.7, MongoDB v2.6, PyMongo v3.x
- Python v3.5, MongoDB v2.6, PyMongo v3.x
- Python v3.6, MongoDB v2.6, PyMongo v3.x
- Python v2.7, MongoDB v3.0, PyMongo v3.5.0
- Python v3.6, MongoDB v3.0, PyMongo v3.5.0
- Python v3.5, MongoDB v3.2, PyMongo v3.x
- Python v3.6, MongoDB v3.2, PyMongo v3.x
- Python v3.6, MongoDB v3.4, PyMongo v3.x
- Python v3.6, MongoDB v3.6, PyMongo v3.x
There were a couple issues with this setup:
1. MongoDB v2.6 – v3.2 have reached their End of Life already (v2.6 almost 3
years ago!). See the "MongoDB Server" section on
https://www.mongodb.com/support-policy .
2. We were only testing two recent-ish PyMongo versions (v3.5.0 & v3.6.1).
We were not testing the oldest actively supported MongoDB/PyMongo/Python
setup.
This PR updates the test matrix so that these problems are solved. For the
sake of simplicity, it does not yet attempt to cover MongoDB v4.0:
- PyPy, MongoDB v3.4, PyMongo v3.x (aka v3.6.1 at the moment)
- Python v2.7, MongoDB v3.4, PyMongo v3.x
- Python v3.5, MongoDB v3.4, PyMongo v3.x
- Python v3.6, MongoDB v3.4, PyMongo v3.x
- Python v2.7, MongoDB v3.4, PyMongo v3.4
- Python v3.6, MongoDB v3.6, PyMongo v3.x
2019-05-31 11:01:15 +02:00
Bastien Gérard
f00c9dc4d6
Fix flake8 import error
2019-05-28 09:26:07 +02:00
Bastien Gérard
7d0687ec73
custom field validator is now expected to raise a ValidationError (drop support for returning True/False)
2019-05-28 09:26:07 +02:00
Bastien Gérard and GitHub
da3773bfe8
Merge pull request #2063 from bagerard/improve_test
...
Improve minor things in the tests
2019-05-26 22:33:40 +02:00
Bastien Gérard
6e1c132ee8
Improve minor things in the tests
2019-05-26 22:17:58 +02:00
Bastien Gérard and GitHub
24ba35d76f
Merge pull request #2062 from george-pearson/deprecation_warning_pymongo
...
Use update_one instead of deprecated update #1899
2019-05-26 21:20:56 +02:00
George Pearson
64b63e9d52
Use update_one instead of deprecated update #1899
2019-05-26 17:29:23 +01:00
erdenezul and GitHub
7848a82a1c
Merge pull request #2032 from bagerard/remove_pymongo2_support_dead_code
...
remove dead code (related to pymongo2)
2019-05-25 14:43:20 +02:00
Bastien Gérard
6a843cc8b2
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_pymongo2_support_dead_code
2019-05-23 21:06:15 +02:00
Bastien Gérard
ecdb0785a4
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_pymongo2_support_dead_code
2019-05-23 21:04:58 +02:00
erdenezul and GitHub
9a55caed75
Merge pull request #2056 from bagerard/support_mongo36
...
Add support for MongoDB 3.6 and Python3.7 in travis
2019-05-18 17:06:48 +02:00
Bastien Gérard
2e01eb87db
Add support for MongoDB 3.6 and Python3.7 in travis
2019-05-18 14:29:42 +02:00
erdenezul and GitHub
597b962ad5
Merge pull request #2055 from bagerard/improve_test_cov
...
Improve test cov
2019-05-18 12:40:20 +02:00
Bastien Gérard and GitHub
7531f533e0
Merge pull request #2054 from abarto/add-nin-support-transform
...
Add support for '$nin' when transforming a 'pull' update query.
2019-05-18 11:14:32 +02:00
Agustin Barto
6b9d71554e
Add integration tests
2019-05-17 17:23:52 -03:00
Bastien Gérard
bb1089e03d
Improve coverage in fields test
2019-05-17 22:16:08 +02:00
Bastien Gérard
c82f0c937d
more work on coverage
2019-05-17 22:04:28 +02:00
Bastien Gérard
00d2fd685a
more test cov
2019-05-17 22:04:28 +02:00
Bastien Gérard
f28e1b8c90
improve coverage of lazy ref field
2019-05-17 22:04:28 +02:00
Agustin Barto
2b17985a11
Uncomment tests.
2019-05-17 13:55:00 -03:00
Agustin Barto
b392e3102e
Add support to transform. Add pull tests for and .
2019-05-17 13:41:02 -03:00
Bastien Gérard and GitHub
58b0b18ddd
Merge pull request #2053 from bagerard/Fix_travis_incomp_tox_virtualenv
...
Fix Incompatibility btw recent tox version and virtualenv version
2019-05-16 23:15:09 +02:00
Bastien Gérard
6a9ef319d0
Fix Incompatibility btw recent tox version and virtualenv version
2019-05-16 23:01:43 +02:00
Bastien Gérard
cf38ef70cb
Remove more code related to supporting pymongo2
2019-05-15 22:23:35 +02:00
Bastien Gérard
ac64ade10f
remove dead code (related to pymongo2) + minor cleaning
2019-05-15 21:54:47 +02:00
erdenezul and GitHub
ee85af34d8
Merge pull request #2043 from bagerard/fix_write_concern_in_save
...
Fix default write concern on save call that was overwriting connection WC
2019-05-15 15:26:50 +02:00
Erdenezul Batmunkh
9d53ad53e5
Remove save and reload from embeddeddocument
2019-05-10 17:33:59 +02:00
Bastien Gérard
9cdc3ebee6
Fix default write concern on save call that was overwriting connection wc
2019-05-05 23:37:12 +02:00
erdenezul and GitHub
14a5e05d64
Merge pull request #2042 from bagerard/fix_querying_embedded_subcls
...
Fix querying embeddedDoc sub classes
2019-05-04 17:10:23 +02:00
Bastien Gérard
f7b7d0f79e
Improve tests for querying list(embedded) when using inheritance
2019-05-03 21:59:48 +02:00
Bastien Gérard
d98f36ceff
Add test for querying on fields of list(EmbeddedDocument) (with inheritance on the EmbededDoc)
2019-05-02 00:08:16 +02:00
Bastien Gérard
abfabc30c9
Fix querying on (Generic)EmbeddedDocument subclasses fields
2019-05-01 23:23:19 +02:00
erdenezul and GitHub
c1aff7a248
Merge pull request #2038 from bagerard/disconnect
...
Fix connect/disconnect functions
2019-04-30 14:08:55 +02:00
Bastien Gérard
e44f71eeb1
updated changelog
2019-04-25 22:31:05 +02:00
Bastien Gérard
cb578c84e2
Merge branch 'master' of github.com:MongoEngine/mongoengine into disconnect
2019-04-25 22:15:48 +02:00
Bastien Gérard
565e1dc0ed
minor improvements
2019-04-25 22:11:43 +02:00
Bastien Gérard
b1e28d02f7
Improve connect/disconnect
...
- document disconnect + sample of usage
- add more test cases to prevent github issues regressions
2019-04-24 22:44:07 +02:00
Bastien Gérard
d1467c2f73
Fix connect/disconnect functions
...
- expose disconnect
- disconnect cleans _connection_settings
- disconnect cleans cached collection in Document._collection
- re-connecting with the same alias raise an error (must call disconnect in between)
2019-04-24 22:41:56 +02:00
Bastien Gérard and GitHub
c439150431
Merge pull request #2031 from yandrieiev/fail_fast_when_invalid_db_name
...
Fail fast when db name is invalid
2019-04-10 22:50:29 +02:00
Bastien Gérard
9bb3dfd639
updated changelog for recent commits + improve tests
2019-04-07 23:05:55 +02:00
Bastien Gérard and GitHub
4caa58b9ec
Merge pull request #2029 from nsuthar0914/patch-1
...
Fix limit usage in aggregate
2019-04-07 22:32:31 +02:00
Yurii Andrieiev
b5213097e8
Fail fast when db name is invalid
...
Without this commit save operation on first document would fail instead of immediate failure upon connection attempt. Such later failure is much less obvious.
2019-04-07 23:21:12 +03:00
Neeraj Suthar
61081651e4
reinsert fix; add comments, reference
2019-04-06 17:42:14 +05:30
Neeraj Suthar
4ccfdf051d
remove fix; add testcases
2019-04-06 17:23:02 +05:30
Neeraj and GitHub
9f2a9d9cda
Fix limit usage in aggregate
...
As per https://stackoverflow.com/a/24161461
2019-04-03 19:09:45 +05:30
Bastien Gérard and GitHub
827de76345
Merge pull request #2007 from GVRV/feature/fix_multiple_dereference_calls
...
Fix Multiple Redundant Dereference Calls
2019-03-30 20:39:31 +01:00
Gaurav Dadhania
fdcaca42ae
Do not keep calling _dereference on values if it has already been dereferenced.
2019-03-25 09:43:42 +05:30
erdenezul and GitHub
0744892244
Merge pull request #2022 from bagerard/bump_pymongo_version_requirement
...
Bump the required version of pymongo to >=3.5
2019-03-19 09:01:18 +08:00
erdenezul and GitHub
b70ffc69df
Merge branch 'master' into bump_pymongo_version_requirement
2019-03-19 08:50:21 +08:00
Bastien Gérard and GitHub
73b12cc32f
Merge pull request #2021 from pauloAmaral/fix_indices_sortedlist_embedded_document_list
...
Generate Unique Indices for SortedListField and EmbeddedDocumentListField
2019-03-18 18:23:28 +01:00
Paulo Amaral
ba6a37f315
Generate Unique Indices for SortedListField and EmbeddedDocumentListFields
2019-03-18 11:32:53 +00:00
Bastien Gérard
6f8be8c8ac
document change in changelog
2019-03-17 22:11:01 +01:00
Bastien Gérard
68497542b3
Bump the required version of pymongo to >=3.5
2019-03-17 22:04:19 +01:00
Bastien Gérard and GitHub
3d762fed10
Merge pull request #2016 from lalala223/master
...
Update querying.rst
2019-03-16 20:27:48 +01:00
lalala223 and GitHub
48b849c031
Update querying.rst
...
Fix the 'not' operator error example.
2019-03-13 17:50:54 +08:00
Bastien Gérard and GitHub
88c4aa2d87
Merge pull request #2014 from MongoEngine/draft_v017
...
Bump version 0.17.0
2019-03-11 22:02:41 +01:00
Erdenezul Batmunkh
fb8c0d8fe3
Merge branch 'master' into draft_v017
2019-03-10 22:22:29 +08:00
erdenezul and GitHub
1a863725d1
Merge pull request #2011 from bagerard/fix_batch_size_qs_clone
...
Fix queryset batch_size that wasn't copied to cloned queryset
2019-03-10 21:22:46 +08:00
Erdenezul Batmunkh
7b4245c91c
Bump version 0.17.0
2019-03-10 21:16:58 +08:00
Bastien Gérard
9bd0d6b99d
update changelog
2019-03-04 23:05:22 +01:00
Bastien Gérard
b640c766db
Fix queryset batch_size that wasn't copied to cloned queryset
2019-03-04 23:01:12 +01:00
erdenezul and GitHub
50ffa8014e
Merge pull request #2008 from bagerard/refactor_deprecated_pymongo_test
...
refactored deprecated pymongo methods in tests
2019-03-03 08:06:48 +08:00
Bastien Gérard
7ef688b256
Added a test for push in DictField (relates to #1679 )
2019-03-02 22:05:23 +01:00
Bastien Gérard
b4fe0b35e4
Merge branch 'master' of github.com:MongoEngine/mongoengine into refactor_deprecated_pymongo_test
2019-03-02 21:48:41 +01:00
erdenezul and GitHub
a2cbbdf819
Merge pull request #2009 from bagerard/mongodb_34
...
Add support for Mongodb 34 (tests/travis)
2019-03-02 08:24:59 +08:00
Bastien Gérard
35b7efe3f4
refactored deprecated pymongo methods in tests
...
- remove/count/add_user/insert
- added pymongo_support
2019-03-02 00:28:38 +01:00
Bastien Gérard
7cea2a768f
Fix recent flaky test for python 3.6
2019-02-26 22:57:45 +01:00
Bastien Gérard
7247b9b68e
additional fixes to support Mongo3.4
2019-02-26 21:38:23 +01:00
Bastien Gérard
dca837b843
Add suport for Mongo 3.4 (travis, fix tests)
2019-02-26 21:38:23 +01:00
Bastien Gérard
c60c2ee8d0
fix minor styling issue in tests
2019-02-25 22:33:36 +01:00
Bastien Gérard
3cdb5b5db2
fix poor assert's in tests
2019-02-25 22:29:44 +01:00
Bastien Gérard
b9cc8a4ca9
refactor more field tests into submodules #1983
2019-02-24 10:24:12 +01:00
Bastien Gérard
28606e9985
refactor fields tests (float, int, lazyref, long, url) #1983
2019-02-24 10:24:12 +01:00
Bastien Gérard
5bbe782812
fix deprecated call to pymongo save() in tests
2019-02-23 22:37:32 +01:00
erdenezul and GitHub
d65861cdf7
Merge pull request #2004 from bagerard/fix_iteritems_itervalues_23_compat
...
refactored iteritems/itervalues to improve 2/3 compat
2019-02-23 22:46:21 +08:00
Bastien Gérard
c8df3fd2a7
fix conflict
2019-02-21 21:27:08 +01:00
Bastien Gérard and GitHub
6cfe6652a3
Merge pull request #2001 from bagerard/separate_date_fields_tests_into_submodules
...
Separate fields tests into separate modules (date/datetime/complexdt)
2019-02-19 20:57:15 +01:00
erdenezul and GitHub
6b711da69d
Merge pull request #1998 from bagerard/Fix_update_full_result_documentation
...
Fix documentation of Queryset.update regarding full_result #1995
2019-02-19 17:16:42 +08:00
erdenezul and GitHub
9b02867293
Merge branch 'master' into remove_save_embedded
2019-02-19 17:15:14 +08:00
erdenezul and GitHub
595cb99b2d
Merge pull request #2005 from bagerard/add_deprecation_warn_embeddedDoc_save
...
Add DeprecationWarning for EmbeddedDocument.save & .reload
2019-02-19 17:13:57 +08:00
Bastien Gérard
f0a3445250
minor fix for import order
2019-02-18 22:22:20 +01:00
Bastien Gérard
6d353dae1e
refactored iteritems/itervalues to improve 2/3 compat #2003
2019-02-18 22:13:05 +01:00
Bastien Gérard
57a38282a9
Add DeprecationWarning for EmbeddedDocument.save & .reload - those will be removed soon
2019-02-18 22:03:03 +01:00
erdenezul and GitHub
db47604865
Merge pull request #1999 from bagerard/fix_documentation_dynamicdoc_underscore_field_undeclared
...
Improve DynamicDocument documentation regarding fields with underscore
2019-02-18 09:33:39 +08:00
erdenezul and GitHub
2a121fe202
Merge branch 'master' into Fix_update_full_result_documentation
2019-02-18 09:31:00 +08:00
erdenezul and GitHub
36baff0d7f
Merge pull request #2002 from bagerard/freyr_binaryfield_query_value_type
...
Fix Binaryfield query operator
2019-02-18 09:27:01 +08:00
Bastien Gérard
201f3008b1
Fix for py3 in binary field test
2019-02-17 22:56:56 +01:00
Bastien Gérard
f4873fee18
add additional test for #1976
2019-02-17 22:50:42 +01:00
Bastien Gérard
e02261be6d
add test coverage for #1557
2019-02-17 22:22:29 +01:00
Bastien Gérard
2919e6765c
separate test on binary field ( #1983 )
2019-02-17 21:45:05 +01:00
Bastien Gérard
b8fc4d0079
Merge branch 'master' of github.com:MongoEngine/mongoengine into freyr_binaryfield_query_value_type
2019-02-17 21:38:24 +01:00
Bastien Gérard
4a46f5f095
Separate fields tests into separate modules (date/datetime/complexdatetime)
...
relates to #1983
2019-02-17 21:32:46 +01:00
Bastien Gérard
3484ceabb8
Fix documentation regarding limitation with fields with underscore in their name in DynamicDocument
2019-02-17 09:05:27 +01:00
Bastien Gérard
cab659dce6
Fix documentation of Queryset.update regarding full_result #1995
2019-02-16 21:54:05 +01:00
Bastien Gérard and GitHub
a657f29439
Merge pull request #1996 from hrmon/patch-1
...
Fix indentation in LazyReferenceField ref doc
2019-02-16 20:31:19 +01:00
Hamidreza and GitHub
4c054bf316
Fix indentation in LazyReferenceField ref doc
2019-02-13 21:27:54 +03:30
erdenezul and GitHub
dc7922c38b
Merge pull request #1976 from 3ddi/eddie/revert_hidden_fields
...
Bring back _cls and _id fields just as they return in pymongo
2019-02-13 14:25:12 +08:00
Eddie Linder
c6c68abfcc
Update changelog and add another ut case
2019-01-11 19:23:47 +02:00
Bastien Gérard and GitHub
6aacb0c898
Merge pull request #1982 from gbroques/add-long-field-to-docs
...
Add missing LongField to Fields list in Documentation
2018-12-29 23:28:02 +01:00
G Roques
e7000db491
Add LongField to Fields list
2018-12-29 13:08:39 -06:00
Bastien Gérard and GitHub
fce994ea7f
Merge pull request #1975 from bagerard/dictfield-key-with-dollar-char__clone
...
PR CLONE - Dictfield key with dollar char clone
2018-12-27 23:02:00 +01:00
erdenezul and GitHub
6c6446765e
Merge pull request #1980 from bagerard/update_all_doc
...
minor update to .all() doc to make it clear that it return a queryset
2018-12-26 11:50:11 +08:00
Bastien Gérard
69a99c70c6
minor update to .all() doc to make it clear that it does not return a list but a queryset
2018-12-24 23:51:30 +01:00
Eddie Linder
56d9f7a8af
Fix ut to pass constantly
2018-12-20 01:14:23 +02:00
Eddie Linder
363aefe399
Get rid of _get_as_pymongo wrapper altogether as we return raw output
2018-12-20 01:09:28 +02:00
Eddie Linder
7fd4f792ba
Don't hide _cls field when using as_pymongo
2018-12-20 01:02:42 +02:00
Eddie Linder
6fbdde63d8
Fix id in test_only_after_count ut
2018-12-20 00:57:02 +02:00
Eddie Linder
b04dc90cdf
Bring back _cls and _id fields just as they return in pymongo
2018-12-20 00:39:32 +02:00
Bastien Gérard
b525c91bd3
remove tags file that shouldnt be added to situkangsayur s commit
2018-12-19 20:33:37 +01:00
Hendri Karisma and Bastien Gérard
a32c893078
in the mid DictField key can accept dollar sign
2018-12-19 20:24:28 +01:00
Bastien Gérard and GitHub
2c6a744848
Merge pull request #1853 from bagerard/fix_baselist_marked_changed_bug
...
Fix BaseList/Dict bug with marked_as_changed getting called when operation fails
2018-12-19 20:16:57 +01:00
Bastien Gérard
4492874d08
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_baselist_marked_changed_bug
2018-12-15 20:36:42 +01:00
erdenezul and GitHub
d3a592e5bf
Merge pull request #1913 from bagerard/1453_mapfield_list_reference_field
...
Fix complex combinations of DictField(ListField(ReferenceField))
2018-12-13 09:16:19 +08:00
erdenezul and GitHub
cab21b1b21
Merge pull request #1969 from buggyspace/master
...
Fix .only() working improperly after using .count() of the same instance of QuerySet
2018-12-12 19:25:31 +08:00
Tom Floyer
1319e422ea
Updated docs/changelog.rst
2018-12-08 22:38:04 +03:00
Tom Floyer
c88ea40b57
Updated AUTHORS
2018-12-08 22:32:46 +03:00
Tom Floyer
3194a37fcb
Reset cursor object after .count()
...
This change fixes incorrect result of .only() method of QuerySet
instance after using .count().
2018-12-08 22:16:57 +03:00
Tom Floyer
72ebaa52e9
Ensure that QuerySet.only() works correctly after QuerySet.count()
...
This test checks if .only() method of QuerySet instance works after
using .count() method.
2018-12-08 22:10:10 +03:00
erdenezul and GitHub
0e00695fc7
Merge pull request #1968 from amir-almusawi/doc-typo
...
fixed small typographical error
2018-12-08 12:23:18 +08:00
amir-almusawi
48a691e722
fixed small typographical error
2018-12-07 22:08:05 -06:00
erdenezul and GitHub
cf54d6d6f8
Merge pull request #1967 from erdenezul/bump_version_16_3
...
bump version 0.16.3
2018-12-06 21:56:31 +08:00
Erdenezul Batmunkh
a03fe234d0
bump version 0.16.3
2018-12-06 16:22:00 +08:00
erdenezul and GitHub
d88d40cc08
Merge pull request #1966 from tjhall13/1965-fix-position-op-with-nested-list-in-embedded-document
...
Fix bug #1965 of $position and $push operators do not work with nested list
2018-12-06 14:02:46 +08:00
Trevor Hall
d3b4af116e
Add fix to changelog.rst #1965
2018-12-05 23:35:42 -06:00
Trevor Hall
352b23331b
Fix bug #1965 of $position and $push operators do not work with list in an EmbeddedDocument. Set key value to joined parts excluding the index at the end. Added test case
2018-12-05 20:18:48 -06:00
Bastien Gérard and GitHub
bdd6041a5c
Merge pull request #1960 from bagerard/bump_version_0_16_2
...
bump version to 0.16.2
2018-11-21 13:45:13 +01:00
Bastien Gérard
1894003f8a
bump version to 0.16.2
2018-11-21 12:45:16 +01:00
erdenezul and GitHub
220513ae42
Merge pull request #1959 from bagerard/fix_write_concern_default_param
...
Fix but with save(write_concern=None) - introduced in 0.16.1
2018-11-21 09:15:00 +08:00
Bastien Gérard
fcbabbe357
Fix but with save(write_concern=None) - introduced in 0.16.1
2018-11-21 00:03:08 +01:00
erdenezul and GitHub
3627969fce
Merge pull request #1952 from erdenezul/bump_v0.16.1
...
bump version 0.16.1
2018-11-14 17:23:10 +08:00
Erdenezul Batmunkh
8807c0dbef
bump version 0.16.1
2018-11-14 17:10:17 +08:00
erdenezul and GitHub
23cc9f6ff8
Merge pull request #1951 from bagerard/fix_cls_in_constructor
...
Regression bug fix - _cls not set in constructor
2018-11-14 17:02:17 +08:00
Bastien Gérard
e50799e9c4
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_cls_in_constructor
2018-11-13 21:48:16 +01:00
Bastien Gérard and GitHub
b92c4844eb
Merge pull request #1949 from bagerard/fix_delta_bug
...
Fix bug in _delta method - setting ListField to empty in DynamicDocument is faulty
2018-11-13 21:44:02 +01:00
Bastien Gérard
c306d42d08
Fix bug #1733 of _delta method (Issue with DynamicDocument and default value) + add test case
2018-11-13 20:57:41 +01:00
Bastien Gérard
e31558318e
BugFix - _cls not set in constructor #1950
2018-11-13 20:52:39 +01:00
erdenezul and GitHub
78a9420f26
Merge pull request #1944 from erdenezul/deprecation_warning_pymongo37
...
Use insert_one instead of deprecated one #1899
2018-11-13 19:40:22 +08:00
Erdenezul Batmunkh
b47c5b5bfc
Adhere imports into existing one #1899
2018-11-12 09:53:39 +08:00
erdenezul and GitHub
28a312accf
Merge pull request #1946 from erdenezul/refactor_write_concern
...
Refactor write_concern #1945
2018-11-09 09:30:20 +08:00
Erdenezul Batmunkh
611094e92e
Refactor write_concern #1945
2018-11-09 09:20:55 +08:00
Erdenezul Batmunkh
2a8579a6a5
Update changelog #1899
2018-11-09 09:12:29 +08:00
Erdenezul Batmunkh
47577f2f47
Update existing document #1899
2018-11-09 01:44:30 +08:00
Erdenezul Batmunkh
34e3e45843
Use insert_one instead of deprecated one #1899
2018-11-08 23:47:12 +08:00
Bastien Gérard and GitHub
364dc9ddfb
Merge pull request #1937 from bagerard/changelog
...
Bump version to 0.16.0 + update changelog
2018-11-05 09:38:58 +01:00
Bastien Gérard
23324f0f87
minor fix in ImageField docstring
2018-11-04 22:14:27 +01:00
Bastien Gérard
17fa9a3b77
bump version to 0.16.0
2018-11-03 21:48:12 +01:00
Bastien Gérard
424b3ca308
update changelog with changes since 0.15.3
2018-11-03 21:47:56 +01:00
Bastien Gérard and GitHub
26e2fc8fd4
Merge pull request #1887 from bagerard/fix_changed_fields_issue_same_id_in_nested_doc2
...
Fix bug where an EmbeddedDocument with the same id as its parent would not be tracked for changes
2018-11-01 22:49:07 +01:00
Bastien Gérard
8e18484898
Add a comment on a suspicious line ( #1322 )
2018-11-01 22:28:12 +01:00
Bastien Gérard and GitHub
354cfe0f9c
Merge pull request #1935 from bagerard/generic_ref_field_changed
...
Fix bug when doing modifications to generic-referenced document
2018-10-31 15:53:13 +01:00
Bastien Gérard
983474b2bd
Ignore 2 more flake8 warnings (introduced in latest flake8 3.6.0 release)
2018-10-30 23:40:46 +01:00
Bastien Gérard
14d861bcbb
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into generic_ref_field_changed
2018-10-30 23:21:19 +01:00
Bastien Gérard
f6cd349a16
Fix bug when using GenericReferenceField, modifications to the referenced document are tracked in the parent #1934
2018-10-30 23:00:05 +01:00
Bastien Gérard and GitHub
8e1c4dec87
Merge pull request #1846 from bagerard/fix_validator_of_binary_field
...
fix validator of BinaryField
2018-10-26 22:14:08 +02:00
erdenezul and GitHub
18b47e4a73
Merge pull request #1932 from bagerard/improve_index_doc
...
minor improvement to index doc
2018-10-25 10:19:04 +08:00
erdenezul and GitHub
4f157f50ed
Merge pull request #1931 from bagerard/fix_no_dereference_doc_asserts
...
fix some asserts in no_dereference doc
2018-10-25 10:15:33 +08:00
erdenezul and GitHub
f44a2f4857
Merge pull request #1843 from terencehonles/add-__repr__-to-Q-and-QCombination
...
add __repr__ to Q and QCombination
2018-10-25 10:14:05 +08:00
Bastien Gérard
c685ace327
minor improvement to index doc
2018-10-23 23:55:55 +02:00
Bastien Gérard
f23b0faf41
fix some asserts in no_dereference doc
2018-10-23 22:10:34 +02:00
erdenezul and GitHub
e0e2ca7ccd
Merge pull request #1930 from bagerard/improve_doc_indexes
...
Improve documentation for additional index options
2018-10-23 10:16:27 +08:00
Bastien Gérard
83fe7f7eef
Document the index option and the fact that additional options gets forwarded to pymongo's create_index method
2018-10-22 21:54:46 +02:00
erdenezul and GitHub
1feaa8f2e9
Merge pull request #1927 from possnfiffer/patch-1
...
Update README.rst
2018-10-22 16:44:36 +08:00
__ROLLER__ and GitHub
598d6bf4c5
Update README.rst
...
Added information on using pipenv to the Installation section
2018-10-21 12:47:23 -06:00
erdenezul and GitHub
0afd5a40d6
Merge pull request #1923 from bagerard/update_document_ids_during_bulk_insert
...
Update the ids of the given documents during bulk insert
2018-10-17 19:03:11 +08:00
Bastien Gérard
26b70e9ed3
fix test
2018-10-16 22:55:55 +02:00
Bastien Gérard
a1a93a4bdd
minor additions
2018-10-16 22:35:58 +02:00
Bastien Gérard
4939a7dd7c
update input document ids during bulk insert #1919
2018-10-16 22:21:53 +02:00
Bastien Gérard
0fa6610fdb
Fix complex combinations of DictField(ListField(ReferenceField)) ( #1453 )
2018-10-16 21:08:59 +02:00
erdenezul and GitHub
b0148e7860
Merge pull request #1921 from bagerard/error_referencefield_of_abstract_classes
...
Fix a bug when using a ReferenceField(AbstractClass)
2018-10-16 07:55:52 +08:00
Bastien Gérard
59a06a242d
Fix a bug when using a ReferenceField(AbstractClass) #1920
2018-10-15 22:32:11 +02:00
erdenezul and GitHub
ffe902605d
Merge pull request #1918 from bagerard/improve_error_cant_subclass_document
...
Improve the error message that mentions that Document cant be subclassed
2018-10-15 11:18:13 +08:00
Bastien Gérard
556f7e85fc
Improve the error message that mentions that Document cant be subclassed
2018-10-10 23:13:34 +02:00
erdenezul and GitHub
45c86be402
Merge pull request #1916 from liuq/master
...
Bug fix: pre_save_post_validation could, in principle, modify the document
2018-10-10 17:12:39 +08:00
erdenezul and GitHub
bf34f413de
Merge pull request #1912 from bagerard/fix_deprecation_warning_Hashable
...
Fix deprecation warning about Hashable in py3.7
2018-10-10 16:32:50 +08:00
erdenezul and GitHub
9b022b187f
Merge pull request #1905 from bagerard/rework_in_test
...
minor rework in test
2018-10-10 16:29:53 +08:00
erdenezul and GitHub
c3409d64dc
Merge pull request #1906 from vainu-arto/fix_listfield_validate
...
Fix invalid isinstance check in ListField.validate
2018-10-10 15:58:47 +08:00
Arto Jantunen
3c5c3b5026
Fix invalid isinstance check in ListField.validate
...
Using QuerySet directly would fail if QuerySetNoCache was used. Sadly the
test suite does not have a case where QuerySet would appear here, so adding
a test for this special case is not trivial.
2018-10-10 10:43:29 +03:00
erdenezul and GitHub
f240f00d84
Merge pull request #1914 from bagerard/improve_code_quality
...
Improve code quality (mainly based on pylint findings)
2018-10-10 15:40:07 +08:00
Luca Di Gaspero
68c7764c63
Small fix to ensure to use the right document after pre_save_post_validation hook, which might modify the document itself (e.g., for adding a etag).
2018-10-08 17:06:08 +02:00
Bastien Gérard
adfb039ba6
Improve overall code quality (based on pylint findings)
2018-10-07 23:05:18 +02:00
Bastien Gérard
89416d9856
Fix deprecation warning about Hashable in py3.7
2018-10-05 16:17:55 +02:00
Bastien Gérard
9b6c972e0f
renamed decorator needs_mongodb_x in test + fixes ref to mongo 2.4 from travis files
2018-10-02 22:03:55 +02:00
erdenezul and GitHub
55fc04752a
Merge pull request #1903 from bagerard/mongodb_32
...
Fixed tests to allow support of MongoDB 3.2 + Drop Mongo2.4 from CI
2018-10-01 10:37:12 +08:00
Bastien Gérard
96f0919633
- Fixed tests to allow support of MongoDB 3.2
...
- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2
2018-09-30 21:59:15 +02:00
erdenezul and GitHub
17b140baf4
Merge pull request #1901 from bagerard/fix_side_effect_no_dereference_on_GenericReferenceField
...
Fix side effect of no_dereference on GenericReferenceField
2018-09-26 06:45:17 +08:00
Bastien Gérard
45c2151d0f
Fix side effect of no_dereference on GenericReferenceField
2018-09-25 22:56:57 +02:00
erdenezul and GitHub
1887f5b7e7
Merge pull request #1877 from bagerard/improve_ComplexField_validation_edge_case
...
Handles edge case when EmbeddedDocumentListField receives a Document and not a list
2018-09-18 14:49:24 +08:00
erdenezul and GitHub
708d1c7a32
Merge pull request #1892 from bagerard/no_dereference_queryset_fix_side_effect
...
fix side effect from queryset.no_dereference
2018-09-18 14:40:14 +08:00
erdenezul and GitHub
acf8c3015a
Merge pull request #1893 from bagerard/swat_url_fix
...
(CLONE) fix - allow url with underscore in domain
2018-09-18 14:29:55 +08:00
Bastien Gérard
f83ae5789b
fix side effect from queryset's no_dereference #1677
2018-09-16 23:11:45 +02:00
Bastien Gérard
57ccfcfc1b
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into swat_url_fix
2018-09-16 23:03:16 +02:00
erdenezul and GitHub
dd0fdcfdd4
Merge pull request #1889 from bagerard/compatible_pyton_2_3_improvement
...
improve 2-3 codebase compatibility
2018-09-15 00:44:38 +08:00
erdenezul and GitHub
5c805be067
Merge pull request #1879 from last-partizan/fix-choices-display
...
fixed TypeError on translated choices
2018-09-11 18:34:00 +08:00
Sergey Tereschenko
e423380d7f
Merge remote-tracking branch 'original-repo/master' into fix-choices-display
2018-09-11 13:24:52 +03:00
erdenezul and GitHub
4d8bebc917
Merge pull request #1886 from bagerard/patch-4
...
Updating inheritance doc
2018-09-10 09:12:50 +08:00
Bastien Gérard
4314fa883f
improve 2-3 codebase compatibility
2018-09-09 23:32:10 +02:00
Bastien Gérard and Bastien Gérard
d6e39b362b
Updating inheritance doc
...
Fixes #429
2018-09-09 14:52:08 +02:00
Bastien Gérard
f89214f9cf
Fixes bug where an EmbeddedDocument that shares the same id of its parent Document could be missing updates when .save was called
...
Fixes #1768 , Fixes #1685
2018-09-09 10:40:51 +02:00
erdenezul and GitHub
d17cac8210
Merge pull request #1884 from erdenezul/limit_behavior
...
Clone of Limit behavior pr #1614
2018-09-07 15:48:54 +08:00
Erdenezul Batmunkh
aa49283fa9
fix trailing whitespace
2018-09-07 15:39:55 +08:00
erdenezul and GitHub
e79ea7a2cf
Merge branch 'master' into limit_behaviour
2018-09-07 15:34:23 +08:00
erdenezul and GitHub
8a1d280f19
Merge pull request #1881 from bagerard/refactoring_poor_assertions_in_tests
...
Refactored some poor assertions across test suite
2018-09-07 14:59:37 +08:00
erdenezul and GitHub
6a8eb9562f
Merge pull request #1882 from bagerard/fix_doc_index_options
...
fix doc for meta index_options
2018-09-07 14:37:38 +08:00
erdenezul and GitHub
8f76e1e344
Merge branch 'master' into refactoring_poor_assertions_in_tests
2018-09-07 14:37:28 +08:00
erdenezul and GitHub
7b9f084e6b
Merge branch 'master' into fix_doc_index_options
2018-09-07 14:27:57 +08:00
erdenezul and GitHub
5b1693a908
Merge pull request #1871 from bagerard/improve_query_counter
...
Fix few things related to query_counter context manager
2018-09-07 14:22:12 +08:00
erdenezul and GitHub
fd7c00da49
Merge pull request #1883 from svanburen/patch-1
...
Update link to index options
2018-09-07 10:46:39 +08:00
Stefan VanBuren and GitHub
7fc5ced3af
Update link to index options
2018-09-06 16:50:31 -04:00
Bastien Gérard
a86092fb64
fix doc for meta index_options
2018-09-06 22:33:33 +02:00
Bastien Gérard
003827e916
rewrote some poorly written assertions like: assertTrue(isinstance(a, b)) assertTrue(a==b) assertTrue(a!=b) assertTrue(a in b)
2018-09-06 21:47:06 +02:00
Sergey Tereschenko
b15673c525
fixed TypeError on translated choices
...
join expect strings, but if we use django ugettext_lazy like this:
choices=[(1, _("One")), (2, _("Two"))]
there will be TypeError: sequence item 0: expected string, __proxy__ found
this commif fixes error by converting label to string
2018-09-05 11:53:15 +03:00
erdenezul and GitHub
00363303b1
Merge pull request #1875 from bagerard/dax_py3
...
CLONE - return instead of raising StopIteration
2018-09-05 09:42:07 +08:00
erdenezul and GitHub
48fbe890f8
Merge pull request #1876 from bagerard/get_rid_of_DictField_basecls
...
Remove DictField.basecls related code, it is useless
2018-09-05 09:38:52 +08:00
erdenezul and GitHub
4179877cc7
Merge pull request #1878 from bagerard/fix_complex_datetime_default
...
Fix ComplexDateTime default value
2018-09-05 09:37:05 +08:00
Bastien Gérard
282b83ac08
Fix default value of ComplexDateTime + fixed descriptor .__get__ for class attribute
2018-09-04 23:48:07 +02:00
Bastien Gérard
193656e71b
detect when EmbeddedDocumentListField receives an EmbeddedDocument instance instead of a list. It is a common mistake and the error wasn't meaningful (was fired from _from_son)
...
(relates to #1464 )
2018-09-04 22:26:19 +02:00
Bastien Gérard
a25d127f36
Remove DictField.basecls related code, it is useless
2018-09-04 20:51:06 +02:00
Bastien Gérard
cf9df548ca
reverted back to the StopIteration in queryset.next that one didnt have to be changed (test stalled)
2018-09-04 19:18:40 +02:00
Bastien Gérard
f29b93c762
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-04 16:06:45 +02:00
erdenezul and GitHub
032ace40d1
Merge pull request #1668 from erdenezul/read_preference_parse
...
parse read_preference from conn_host #1665
2018-09-04 21:58:31 +08:00
erdenezul and GitHub
f74dd1cb3c
Merge pull request #1591 from axu2/axu2-docs-patch-3
...
docs: use explicit register_delete_rule example
2018-09-04 21:50:29 +08:00
erdenezul and GitHub
29889d1e35
Merge pull request #1868 from bagerard/yalon-master
...
CLONE - When building a query set from filters that reference the same field several times, do not assume each value is a dict
2018-09-04 21:17:49 +08:00
erdenezul and GitHub
d6d19c4229
Merge pull request #1872 from bagerard/inc_operator_with_decimal
...
fix inc/dec operator with DecimalField + improve its doc
2018-09-04 21:07:04 +08:00
Bastien Gérard
ab08e67eaf
fix inc/dec operator with decimal
2018-09-04 14:53:55 +02:00
erdenezul and GitHub
00bf6ac258
Merge pull request #1874 from erdenezul/reduce-cycle-complexity
...
reduce cycle complexity using logic map
2018-09-04 20:52:26 +08:00
Erdenezul Batmunkh
b65478e7d9
trigger ci
2018-09-04 20:44:44 +08:00
Erdenezul Batmunkh
e83b529f1c
flip value before changing op to inc
2018-09-04 20:38:42 +08:00
Erdenezul Batmunkh
408274152b
reduce cycle complexity using logic map
2018-09-04 20:24:34 +08:00
Bastien Gérard
8ff82996fb
Fix few things related to query_counter context manager:
...
- Improve doc
- Fix the fact that the context was modifying the initial profiling_level in case it was != 0
- Ignores 'killcursors' to fix flaky test that were impacted by killcursors queries (#1869 )
2018-09-04 12:07:13 +02:00
Bastien Gérard
d59c4044b7
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into yalon-master
2018-09-03 11:23:28 +02:00
erdenezul and GitHub
3574e21e4f
Merge pull request #1859 from bagerard/fix_EmbeddedDocumentField_init_with_Document
...
Ensures EmbeddedDocumentField does not accepts references to Document
2018-09-03 17:22:08 +08:00
erdenezul and GitHub
5a091956ef
Merge pull request #1862 from bagerard/document_name_param_for_indexes
...
Documented that it is possible to specify a 'name' for the indexes (using the dict definition)
2018-09-03 17:20:17 +08:00
erdenezul and GitHub
14e9c58444
Merge pull request #1866 from bagerard/no_subclass_fixes
...
Fixes 2 bugs in no_subclasses context mgr
2018-09-03 17:19:39 +08:00
erdenezul and GitHub
bfe5b03c69
Merge pull request #1867 from bagerard/pmatos_patch-1
...
Doc update: Clarify comment in validation example
2018-09-03 07:42:39 +08:00
Bastien Gérard
f96f7f840e
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-02 15:36:35 +02:00
Bastien Gérard
a3bcf26dce
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into pmatos_patch-1
2018-09-02 15:27:37 +02:00
Bastien Gérard
a7852a89cc
Fixes 2 bugs in no_subclasses context mgr (__exit__ swallows exception + repair feature)
2018-09-01 23:30:50 +02:00
erdenezul and GitHub
1b0c761fc0
Merge pull request #1863 from bagerard/fix_string_format_bug
...
Fix string formatting bug in ReferenceField.validate
2018-09-01 19:52:37 +08:00
Bastien Gérard
5e4e8d4eda
Merge branch 'master' of github.com:KCarretto/mongoengine
2018-09-01 12:04:23 +02:00
Bastien Gérard
bd524d2e1e
Documented that it is possible to specify a name when using a dict to define an index
2018-09-01 00:12:49 +02:00
erdenezul and GitHub
60fe919992
Merge pull request #1860 from bagerard/improve_doc_EmbeddedDocumentList.filter
...
Improve doc of EmbeddedDocumentList.filter,
2018-08-31 11:35:25 +08:00
erdenezul and GitHub
b90063b170
Merge pull request #1861 from bagerard/minor_improvement_to_DateTimeField_default
...
minor improvement to DateTimeField doc
2018-08-31 11:32:40 +08:00
Bastien Gérard
d9fce49b08
minor improvement to DateTimeField doc
2018-08-30 22:46:37 +02:00
Bastien Gérard
5dbee2a270
Ensures EmbeddedDocumentField does not accepts references to Document classes in its constructor
2018-08-30 22:06:36 +02:00
Bastien Gérard
4779106139
Improve doc of EmbeddedDocumentList.filter and clarify that it does not supports operators like __lte, __gte, etc
2018-08-30 21:50:03 +02:00
erdenezul and GitHub
bf2de81873
Merge pull request #1807 from bagerard/lazy_regex_compilation
...
Implemented lazy regex compiling for issue #1806
2018-08-30 21:33:10 +08:00
erdenezul and GitHub
28cdedc9aa
Merge pull request #1857 from bagerard/fix_doc_of_delete_write_concern
...
Fix .delete doc of **write_concern
2018-08-30 21:28:59 +08:00
erdenezul and GitHub
7e90571404
Merge pull request #1858 from bagerard/fix_index_creation_error_swallowed
...
Fix index creation error that was swallowed by hasattr under python2
2018-08-30 21:28:38 +08:00
erdenezul and GitHub
42bbe63927
Merge pull request #1856 from bagerard/document_created_in_from_json_doc
...
Document the 'created' attribute of .from_json
2018-08-30 21:28:04 +08:00
Bastien Gérard
7ddbea697e
fix CI that fails due to pypi + override BaseDict.get as it was missing
2018-08-30 14:33:57 +02:00
Bastien Gérard
b4860de34d
Fix index creation error that was swallowed by hasattr under python2 ( #1688 )
2018-08-30 10:39:07 +02:00
Bastien Gérard
576f23d5fb
Fix .delete doc of **write_concern as suggested by #1779
2018-08-28 22:58:13 +02:00
Bastien Gérard
86548fc7bf
Document the attribute of .from_json
2018-08-28 22:42:51 +02:00
Terence D. Honles
b3b4d992fe
add Q repr tests
2018-08-27 19:35:47 -07:00
Bastien Gérard
d72daf5f39
Fix BaseList bug with marked_as_changed getting called on error
...
+ Fix BaseDict as well since it suffers from the same problem
2018-08-27 22:34:11 +02:00
erdenezul and GitHub
9ad959a478
Merge pull request #1845 from bagerard/clean_dead_code
...
remove dead code
2018-08-26 08:33:20 +08:00
erdenezul and GitHub
cc00a321da
Merge pull request #1848 from bagerard/patch-4
...
Update gridfs.rst - make it clear that user must call Document.save()
2018-08-26 08:28:42 +08:00
erdenezul and GitHub
de74273108
Merge pull request #1851 from bagerard/fix_IndexError_iter_while_modif_list
...
fix BaseList.__iter__ operator + minor improvements
2018-08-26 08:26:43 +08:00
Bastien Gérard
a7658c7573
fix BaseList.__iter__ operator ( #1305 ) + minor improvements
2018-08-25 16:33:43 +02:00
Bastien Gérard
48a85ee6e0
update related tests
2018-08-20 00:10:27 +02:00
Bastien Gérard and Bastien Gérard
461b789515
relates to ( #710 )
...
- Update gridfs.rst to make it clearer that you should save the Document hosting the GridFSProxy after calling .delete() or .replace() on the GridFSProxy
- updated GridFSProxy.__str__ so that it would always print both the filename and the grid_id. This should improve debugging
2018-08-19 23:45:08 +02:00
Bastien Gérard
b71ff6fbb8
fix validator of BinaryField. In fact bson.Binary fails if we give it unicode in input #273
2018-08-18 23:04:46 +02:00
Bastien Gérard
1bcdcce93a
remove dead code
2018-08-18 00:03:17 +02:00
Terence D. Honles
c09bfca634
add __repr__ to Q and QCombination
2018-08-15 12:36:13 -07:00
erdenezul and GitHub
36c5f02bfb
Merge pull request #1840 from bagerard/patch-2
...
Update signals doc - clarification on EmbeddedDocument
2018-08-15 20:41:04 +08:00
erdenezul and GitHub
eae6e5d9a1
Merge pull request #1841 from bagerard/update_contributing_guidelines_python2_3
...
Contributing doc update - Clarify python 2 should be used to develop on mongoengine
2018-08-15 20:35:36 +08:00
Bastien Gérard
364813dd73
Clarify that you should use python 2 when developing on mongoengine #1837
2018-08-13 22:34:37 +02:00
Bastien Gérard and Bastien Gérard
1a2b1f283b
Update signals doc - clarification on EmbeddedDocument
...
Since there is a .save() method on EmbeddedDocument, you could be tempted to attach a pre_save event to an EmbeddedDocument (#1720 ). This update is an attempt to make this clearer.
2018-08-13 22:16:32 +02:00
erdenezul and GitHub
a0e5cf4ecc
Merge pull request #1834 from JoschSan/patch-1
...
Update connecting.rst
2018-08-08 15:59:09 +08:00
JoschSan and GitHub
820f7b4d93
Update connecting.rst
...
My suggest is append the parameter in authentication_source in authentication example, because was included in https://github.com/MongoEngine/mongoengine/pull/590/files
2018-08-07 14:29:15 -04:00
Bastien Gérard
727866f090
fix styling flake8 error from CI
2018-08-05 22:30:51 +02:00
Bastien Gérard
3d45cdc339
Implemented lazy regex compiling in Field classes to improve 'import mongoengine' performance
2018-08-03 23:36:26 +02:00
erdenezul and GitHub
02a557aa67
Merge pull request #1825 from orsinium/date-field
...
Date field
2018-07-27 19:32:27 +08:00
Gram
6da27e5976
+changelog
2018-07-27 12:31:27 +03:00
Gram
19a6e324c4
+tests for date field
2018-07-20 17:37:23 +03:00
Gram
62eadbc174
+date field
2018-07-20 17:21:57 +03:00
Erdenezul Batmunkh
ae783d4f45
tweak tox.ini to pass tests
2018-07-16 17:25:29 +08:00
Erdenezul Batmunkh
1241a902e3
fix changelog
2018-07-16 09:49:16 +08:00
Erdenezul Batmunkh
fdba648afb
fix pypi trigger
2018-07-16 09:19:50 +08:00
Emmanuel Leblond
b070e7de07
Fix travis's pypi release trigger
2018-06-29 15:47:28 +02:00
Tony Narlock and Stefan Wójcik
d0741946c7
Fix a typo ( #1813 )
...
an -> a
2018-06-28 17:19:48 +02:00
Tal Yalon
080226dd72
Fix issue #1286 and #844.: when building a query set from filters that reference the same field several times, do not assume each value is a dict
2018-06-22 14:16:17 +03:00
erdenezul and GitHub
3cb6a5cfac
Merge pull request #1575 from zetaben/master
...
Make queryset aggregates obey read_preference
2018-05-24 22:23:49 +08:00
erdenezul and GitHub
758971e068
Merge pull request #1799 from erdenezul/ensure_indexes_fails_on_slave
...
Ensure indexes fails on slave #1338
2018-05-23 16:09:51 +08:00
Erdenezul Batmunkh
8739ab9c66
fix syntax #1338
2018-05-23 15:59:18 +08:00
Erdenezul Batmunkh
e8e47c39d7
add changelog #1338
2018-05-23 15:54:44 +08:00
Erdenezul Batmunkh
446c101018
dont call ensure_indexes on slave #1338
2018-05-23 15:53:30 +08:00
erdenezul and GitHub
3654591a1b
Merge pull request #1584 from etng/master
...
[fix]validation list field with multi choice values
2018-05-21 16:33:10 +08:00
erdenezul and GitHub
7fb1c9dd35
Merge branch 'master' into master
2018-05-21 16:22:07 +08:00
erdenezul and GitHub
0fffaccdf4
Merge pull request #1640 from erdenezul/fix_changed_field_reload
...
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:16:37 +08:00
Erdenezul Batmunkh
5902b241f9
Merge branch 'fix_changed_field_reload' of github.com:erdenezul/mongoengine into fix_changed_field_reload
2018-05-21 16:07:31 +08:00
Erdenezul Batmunkh
784386fddc
add changelog #1371
2018-05-21 16:07:08 +08:00
Erdenezul and Erdenezul Batmunkh
d424583cbf
fix flake8 error #1371
2018-05-21 16:06:04 +08:00
Erdenezul and Erdenezul Batmunkh
290b821a3a
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:06:04 +08:00
erdenezul and GitHub
a0dfa8d421
Merge pull request #1723 from chhsiao1981/dereference-add-check-dbref-type
...
defensive programming for v as an instance of DBRef in dereference.
2018-05-21 13:00:46 +08:00
erdenezul and GitHub
ceb00f6748
Merge pull request #1796 from erdenezul/new_bulk_insert_test
...
modify bulk_insert test for pymongo3
2018-05-21 10:24:03 +08:00
Erdenezul Batmunkh
9bd328e147
query_counter fix
2018-05-21 10:04:59 +08:00
Erdenezul Batmunkh
6fb5c312c3
fix test error
2018-05-21 09:54:19 +08:00
Erdenezul Batmunkh
3f9ff7254f
fix queryset tests
2018-05-21 09:46:23 +08:00
Erdenezul Batmunkh
f7a3acfaf4
query profiler test fix
2018-05-21 09:34:44 +08:00
Erdenezul Batmunkh
e4451ccaf8
insert_many uses only one insert
2018-05-21 09:24:40 +08:00
Erdenezul Batmunkh
2adb640821
modify bulk_insert test for pymongo3
2018-05-21 09:19:03 +08:00
erdenezul and GitHub
765038274c
Merge pull request #1691 from rcscott/document-auto-create-index
...
Add documentation for auto_create_index to the Indexing section of the Docs
2018-05-21 08:55:25 +08:00
erdenezul and GitHub
2cbdced974
Merge pull request #1793 from erdenezul/insert_pymongo3
...
use insert_one, insert_many and remove deprecated one #1491
2018-05-20 18:48:14 +08:00
Erdenezul Batmunkh
fc5d9ae100
pymongo3 does not support continue_on_error
2018-05-20 18:39:22 +08:00
Erdenezul Batmunkh
506168ab83
use write_concern class
2018-05-20 18:25:50 +08:00
Erdenezul Batmunkh
088fd6334b
bulkwriteerror does not trigger
2018-05-20 18:06:59 +08:00
Erdenezul Batmunkh
94cda90a6e
fix syntax
2018-05-20 17:56:19 +08:00
Erdenezul Batmunkh
78601d90c9
fix typo
2018-05-20 17:54:13 +08:00
Erdenezul Batmunkh
fa4ac95ecc
catch bulkwriteerror
2018-05-20 17:49:49 +08:00
Erdenezul Batmunkh
dd4d4e23ad
call insert method with set_write_concern
2018-05-20 15:51:02 +08:00
Erdenezul Batmunkh
acba86993d
set_write_concern pymongo3
2018-05-20 15:43:19 +08:00
Erdenezul Batmunkh
0fc55451c2
fix style and ids need to be an array
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
5c0bd8a810
fix inserted_ids
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
1aebc95145
use insert_one, insert_many and remove deprecated one #1491
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
1d3f20b666
fix style and ids need to be an array
2018-05-20 14:41:25 +08:00
Erdenezul Batmunkh
eb2e106871
Merge branch 'insert_pymongo3' of github.com:erdenezul/mongoengine into insert_pymongo3
2018-05-20 14:33:35 +08:00
Erdenezul Batmunkh
f9a887c8c6
fix inserted_ids
2018-05-20 14:33:12 +08:00
erdenezul and GitHub
67ab810cb2
Merge branch 'master' into insert_pymongo3
2018-05-20 14:06:16 +08:00
Erdenezul Batmunkh
3e0d84383e
use insert_one, insert_many and remove deprecated one #1491
2018-05-20 13:41:20 +08:00
erdenezul and GitHub
d245ea3eaa
Merge pull request #1792 from erdenezul/update_pymongo3
...
use update_many, update_one #1491
2018-05-20 13:34:03 +08:00
Erdenezul Batmunkh
843fc03bf4
add changelog for update_one,update_many
2018-05-20 13:16:25 +08:00
Erdenezul Batmunkh
c83c635067
fix import order
2018-05-20 13:04:51 +08:00
Erdenezul Batmunkh
f605eb14e8
fix style
2018-05-20 12:54:24 +08:00
Erdenezul Batmunkh
fd02d77c59
drop pymongo 2.x support in update
2018-05-20 12:43:24 +08:00
Erdenezul Batmunkh
0da8fb379d
Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3
2018-05-20 12:38:22 +08:00
Erdenezul Batmunkh
257a43298b
use MongoClient.is_mongos in ensure indexes #1759
2018-05-20 12:31:27 +08:00
erdenezul and GitHub
a2d3bcd571
Merge pull request #1562 from erdenezul/support_multiple_operator
...
support multiple operator #1510
2018-05-20 12:20:04 +08:00
erdenezul and GitHub
d4142c2cdd
Merge pull request #1790 from erdenezul/compare_index_correct_behavior_text
...
Compare_indexes correct behavior for text index
2018-05-20 11:46:35 +08:00
Erdenezul Batmunkh
e50d66b303
skip mongodb 2.4
2018-05-20 11:26:30 +08:00
Erdenezul Batmunkh
08b6433843
fix compare_indexes for text indexes #1751
2018-05-20 11:03:13 +08:00
Erdenezul Batmunkh
8cd536aab5
Merge branch 'issue-1751' of github.com:th-erker/mongoengine into missing_text_index_ensure_indexes
2018-05-20 10:06:08 +08:00
erdenezul and GitHub
2b495c648f
Merge pull request #1769 from mindojo-victor/master
...
Fix deprecation warning for StopIteration
2018-05-20 09:36:19 +08:00
erdenezul and GitHub
06048b6d71
Merge pull request #1782 from nosahama/patch-1
...
Updated text-indexes.rst
2018-05-19 09:25:54 +08:00
erdenezul and GitHub
bb22287336
Merge pull request #1784 from werat/fix_override_comment
...
Restore comment from cached value after queryset copy
2018-05-19 09:23:58 +08:00
erdenezul and GitHub
a45942a966
Merge pull request #1789 from chidaobanjiu/patch-1
...
Fix typo
2018-05-19 09:20:47 +08:00
Benjamin Jiang and GitHub
85d621846d
Fix typo
2018-05-16 11:37:32 +08:00
erdenezul and GitHub
534acf8df2
Merge pull request #1731 from van4oza/patch-1
...
Insert null values fix
2018-05-15 14:18:24 +08:00
Andy Yankovsky
5a6d4387ea
Restore comment from cached value after cursor copy
2018-05-07 23:17:12 +03:00
erdenezul and GitHub
317e844886
Merge pull request #1765 from kushalmitruka/master
...
fixed : `pull` not working for EmbeddedDocumentListField, only working for ListFields #1534
2018-05-03 09:44:54 +08:00
Kushal Mitruka
b1f62a2735
added import in tests/queryset/transform.py for SON object
2018-05-01 21:08:43 +05:30
Kushal Mitruka and GitHub
65e4fea4ef
added test cases for update pull queries
2018-05-01 20:32:38 +05:30
Emmanuel Nosa Evbuomwan and GitHub
faca8512c5
Updated text-indexes.rst
...
The search statement under the `Ordering by text score` section uses `search` on the QuerySet object instead of `search_text` and thus raised an `AttributeError`
AttributeError: 'QuerySet' object has no attribute 'search'
2018-04-29 17:32:03 +01:00
erdenezul and GitHub
2121387aa2
Merge pull request #1737 from CalgaryMichael/remove-pushall
...
Removing the usage of the '$pushAll' operator
2018-04-17 17:50:52 +08:00
erdenezul and GitHub
72c4444a60
Merge branch 'master' into remove-pushall
2018-04-17 16:38:08 +08:00
erdenezul and GitHub
2d8d2e7e6f
Merge pull request #1771 from bchrobot/add-lazy-reference-documentation
...
Add documentation for LazyReference and GenericLazyReference fields.
2018-04-12 23:12:12 +08:00
Benjamin Chrobot
49bff5d544
Add documentation for LazyReference and GenericLazyReference fields.
2018-04-12 10:47:52 -04:00
Victor
806a80cef1
Fixes #1641
...
There's no need to explicitly raise StopIteration as that's what a bare return statement does for a generator function - so yes they're the same.
As of late 2014 return is correct and raise StopIteration for ending a generator is on a depreciation schedule. See PEP 479 for full details.
https://stackoverflow.com/q/14183803/248296
https://www.python.org/dev/peps/pep-0479/
2018-04-09 17:29:09 +03:00
Kushal Mitruka
c6f0d5e478
fixed pull queries for embeddeddocumentlistfields
...
Updated mongoengine.queryset.transform.update method to handle EmbeddedDocuementListField during pull operations in DB using mongoegning ORM
fixed : .udpate(pull__emb_doc__emb_doc_list=doc)
2018-04-01 20:11:22 +05:30
erdenezul and GitHub
bf30aba005
Merge pull request #1763 from malthejorgensen/patch-2
...
Docs, queryset.update(): Fix backtick mistake
2018-03-31 18:02:00 +08:00
Malthe Jørgensen and GitHub
727778b730
Docs, queryset.update(): Fix backtick mistake
...
Code should be marked with double backticks
2018-03-30 20:41:39 +02:00
erdenezul and GitHub
b081ffce50
Merge pull request #1762 from malthejorgensen/patch-1
...
queryset.update: `full_result`-argument not clearly described
2018-03-30 08:31:35 +08:00
Malthe Jørgensen and GitHub
e46779f87b
Docs, queryset.update: full_result-arg not clearly described
...
The documentation for the `full_result`-argument to `queryset.update()`
can be read as returning the update documents/objects, whereas it's
really returning just the full "PyMongo result dictionary".
This commit adds some wording and an example dictionary,
to make it clear what the behavior is.
2018-03-27 14:14:08 +02:00
Stefan Wojcik
dabe8c1bb7
highlight places where ValidationError is raised outside of validate() method
2018-03-14 14:26:46 -04:00
erdenezul and GitHub
4042f88bd8
Merge pull request #1753 from JohnAD/master
...
Edit EmbeddedDocumentListField update() doc
2018-03-11 19:35:13 +08:00
John Dupuy
a0947d0c54
Edit EmbeddedDocumentListField update() doc
2018-03-10 23:24:04 -06:00
Thomas Erker
a34fd9ac89
Add testcase for #1751
2018-03-08 11:25:36 +00:00
estein-de and Stefan Wójcik
aa68322641
MongoDB wants dates stored in UTC, but the functions used in this documentation to generate datetime objects would use server's local timezone - fix it! ( #1662 )
2018-02-27 09:43:09 -05:00
KCarretto and GitHub
2d76aebb8e
Fixed formatting issue
2018-02-21 05:02:35 -05:00
erdenezul and GitHub
7cc1d23bc7
Merge pull request #1655 from werat/fix_update_pull_in
...
Fix pull+in update queries
2018-02-21 13:36:04 +08:00
Andy Yankovsky
0bd2103a8c
Add test for document update
2018-02-20 00:02:12 +03:00
Sangmin In and Stefan Wójcik
7d8916b6e9
fix case inconsistent casing of "MongoDB" ( #1744 )
2018-02-10 10:59:47 -05:00
swathi
8b5df3ca17
fix - allow url with underscore in domain
2018-02-08 12:31:40 -08:00
erdenezul and GitHub
ffdfe99d37
Merge pull request #1636 from erdenezul/fix_shard_key_modify
...
Fix Document.modify fail on sharded collection #1569
2018-02-06 07:25:42 +08:00
Ivan Pogrebkov and GitHub
7efa67e7e6
reverse to 'style fix'
2018-02-05 12:35:06 +03:00
Ivan Pogrebkov and GitHub
d69808c204
oh, ok...
2018-02-05 12:33:58 +03:00
Ivan Pogrebkov and GitHub
de360c61dd
removed useless lines
2018-02-05 04:26:25 +03:00
Ivan Pogrebkov and GitHub
6b04ddfad1
><
2018-02-05 04:24:03 +03:00
Ivan Pogrebkov and GitHub
0d854ce906
style fix
2018-02-05 03:24:53 +03:00
Calgary Michael
38fdf26405
added tests for push and push_all
2018-02-04 10:23:50 -06:00
Calgary Michael
6835c15d9b
fixing bug in previous commit
2018-02-02 22:41:07 -06:00
Calgary Michael
fa38bfd4e8
made set_write_concern python2.7 compatible
2018-02-02 22:30:06 -06:00
Calgary Michael
4d5c6d11ab
removed deprecated warning for 'update' method
2018-02-02 22:04:30 -06:00
Calgary Michael
9e80da705a
removed usage of 'pushAll' operator
2018-02-02 21:47:04 -06:00
erdenezul and GitHub
9b04391f82
Merge pull request #1736 from vainu-arto/register-connection-match-connection
...
Add db parameter to register_connection #606
2018-02-02 16:46:45 +08:00
Arto Jantunen
8f6c0796e3
Add db parameter to register_connection
...
This is done to make it compatible with the connect function.
2018-02-02 10:26:36 +02:00
erdenezul and GitHub
326fcf4398
Merge pull request #1735 from esmail/patch-1
...
Update `post_save` signal documentation to reflect #594
2018-02-02 15:06:17 +08:00
Esmail and GitHub
fdda27abd1
Update post_save signal documentation to reflect #594
2018-02-01 12:58:10 -05:00
Ivan Pogrebkov and GitHub
7e8c62104a
null=True now usefull
2018-01-26 11:15:12 +03:00
Ivan Pogrebkov and GitHub
fb213f6e74
Update document.py
2018-01-26 11:12:02 +03:00
Ivan Pogrebkov and GitHub
22e75c1691
Insert null values fix
...
https://stackoverflow.com/questions/42601950/how-to-store-a-null-value-in-mongodb-via-mongoengine
2018-01-26 10:55:44 +03:00
Chuan-Heng Hsiao
919f221be9
defensive programming for v as an instance of DBRef when accessing v.collection in dereference
2018-01-11 07:58:24 -05:00
erdenezul and GitHub
da7d64667e
Merge pull request #1571 from erdenezul/reverse_delete_rule_with_pull
...
add test case for reverse_delete_rule with pull #1519
2017-12-23 11:32:09 +08:00
erdenezul and GitHub
d19c6a1573
Merge pull request #1714 from erdenezul/1712-cached-reference-push-fix
...
update fields argument when given #1172
2017-12-23 00:18:19 +08:00
Erdenezul Batmunkh
5cd23039a0
Merge branch '1712-cached-reference-push-fix' of github.com:erdenezul/mongoengine into 1712-cached-reference-push-fix
2017-12-23 00:02:43 +08:00
Erdenezul
19b18d3d0a
add changelog #1712
2017-12-23 00:02:03 +08:00
Erdenezul
101947da8b
update fields argument when given #1172
2017-12-23 00:00:57 +08:00
Emmanuel Leblond and GitHub
d3c3c23630
Merge pull request #1717 from touilleMan/fix-pymongo-mongodb2.4
...
Fix travis tests with mongodb 2.4 & pymongo 3
2017-12-22 16:19:14 +01:00
Erdenezul Batmunkh
abc14316ea
Merge branch '1712-cached-reference-push-fix' of github.com:erdenezul/mongoengine into 1712-cached-reference-push-fix
2017-12-22 21:09:07 +08:00
Erdenezul
b66621f9c6
add changelog #1712
2017-12-22 21:08:35 +08:00
Erdenezul
aa5510531d
update fields argument when given #1172
2017-12-22 21:07:35 +08:00
Emmanuel Leblond
12b846586c
Fix travis tests with mongodb 2.4 & pymongo 3
2017-12-22 13:23:03 +01:00
erdenezul and GitHub
b705f5b743
Merge pull request #1716 from MongoEngine/revert-1645-inc_cov
...
Revert "add tests to increase code coverage"
2017-12-22 20:22:37 +08:00
erdenezul and GitHub
18a5fba42b
Revert "add tests to increase code coverage"
2017-12-22 20:19:21 +08:00
erdenezul and GitHub
b5a3b6f86a
Merge pull request #1645 from erdenezul/inc_cov
...
add tests to increase code coverage
2017-12-22 20:14:31 +08:00
erdenezul and GitHub
00f2eda576
Merge branch 'master' into 1712-cached-reference-push-fix
2017-12-22 19:45:51 +08:00
erdenezul and GitHub
c70d252dc3
Merge branch 'master' into 1712-cached-reference-push-fix
2017-12-22 19:44:53 +08:00
Emmanuel Leblond and GitHub
2f088ce29e
Merge pull request #1710 from esmail/patch-1
...
One-character typo fix ("that" -> "than")
2017-12-22 12:27:47 +01:00
Emmanuel Leblond and GitHub
ff408c604b
Merge pull request #1703 from erdenezul/invalid_instance_genericembedded
...
fix validation error for invalid embedded document instance #1067
2017-12-22 12:23:31 +01:00
Erdenezul
6621c318db
add changelog #1712
2017-12-20 15:28:33 +08:00
Erdenezul
22a8ad2fde
update fields argument when given #1172
2017-12-20 15:17:54 +08:00
Esmail and GitHub
7674dc9b34
One-character typo fix ("that" -> "than")
2017-12-05 15:14:15 -05:00
Erdenezul
9e0ca51c2f
remove merge conflict after rebase #1067
2017-12-01 08:40:51 +08:00
Erdenezul
961629d156
add changelog into dev #1067
2017-12-01 08:40:00 +08:00
Erdenezul Batmunkh
2cbebf9c99
move changes to development
2017-12-01 08:38:41 +08:00
Erdenezul Batmunkh
08a4deca17
change description in changelog
2017-12-01 08:37:53 +08:00
Erdenezul Batmunkh
ce9ea7baad
add changelog
2017-12-01 08:37:53 +08:00
Erdenezul Batmunkh
b35efb9f72
fix validatione error for invalid embedded document instance #1067
2017-12-01 08:37:53 +08:00
Emmanuel Leblond
c45dfacb41
Update changelog
2017-11-29 16:41:42 +01:00
Emmanuel Leblond and GitHub
91152a7977
Merge pull request #1704 from touilleMan/lazyref-improvements
...
Improve LazyReferenceField and GenericLazyReferenceField with nested …
2017-11-29 16:38:11 +01:00
Erdenezul Batmunkh
0ce081323f
move changes to development
2017-11-22 22:19:50 +08:00
Erdenezul Batmunkh
79486e3393
change description in changelog
2017-11-22 19:27:35 +08:00
Erdenezul Batmunkh
60758dd76b
add changelog
2017-11-22 18:56:12 +08:00
Emmanuel Leblond
e74f659015
Improve LazyReferenceField and GenericLazyReferenceField with nested fields
2017-11-22 11:44:49 +01:00
Erdenezul Batmunkh
c1c09fa6b4
fix validatione error for invalid embedded document instance #1067
2017-11-21 21:56:26 +08:00
Emmanuel Leblond
47c7cb9327
Ignore style I202 rule (see https://github.com/PyCQA/flake8-import-order/issues/122 )
2017-11-15 20:44:36 +01:00
Emmanuel Leblond and GitHub
4d6256e1a1
Merge pull request #1675 from erdenezul/push_list_of_list
...
use each modifier only with $position #1673
2017-11-15 08:43:29 +01:00
Emmanuel Leblond and GitHub
13180d92e3
Merge pull request #1652 from erdenezul/generic_embedded_query
...
Subfield resolve error in generic_emdedded_document query #1651
2017-11-13 15:29:26 +01:00
kcarretto
6b38ef3c9f
Fixed format string issue in mongoengine error message.
2017-11-11 03:36:28 -05:00
Ryan Scott
4f5b0634ad
Add documentation for auto_create_index to the Indexing section of the Docs
2017-11-07 16:26:01 -05:00
Emmanuel Leblond
ea25972257
Bump version to 0.15.0
2017-11-06 14:40:59 +01:00
Emmanuel Leblond and GitHub
b6168898ec
Merge pull request #1690 from touilleMan/lazyreference-field
...
Add LazyReferenceField & GenericLazyReferencField
2017-11-06 14:37:43 +01:00
Emmanuel Leblond
da33cb54fe
Correct style
2017-11-06 14:11:11 +01:00
Emmanuel Leblond
35d0458228
Add GenericLazyReferenceField
2017-11-06 12:29:19 +01:00
Emmanuel Leblond
e6c0280b40
Add LazyReferenceField
2017-10-31 18:58:42 +01:00
Mandeep Singh
15451ff42b
return instead of raising StopIteration
2017-10-17 00:11:47 +05:30
Erdenezul
9ab856e186
use each modifier only with #1673
2017-10-10 10:34:34 +08:00
Erdenezul
6e2db1ced6
read_preference from parse_uri only PYMONGO_3 #1665
2017-10-03 09:23:17 +08:00
Erdenezul Batmunkh
5c4ce8754e
run tests only pymongo3 #1565
2017-10-02 23:15:37 +08:00
Erdenezul Batmunkh
416486c370
use read_preference only pymongo3.x #1665
2017-10-02 23:13:25 +08:00
Erdenezul Batmunkh
2f075be6f8
parse read_preference from conn_host #1665
2017-10-02 22:46:27 +08:00
Stefan Wojcik
a1494c4c93
v0.14.3 version bump
2017-10-01 17:31:10 -04:00
Stefan Wojcik
d79ab5ffeb
remove {nospam} from author_email & maintainer_email (PyPI doesnt validate those anymore)
2017-10-01 17:05:28 -04:00
Stefan Wojcik
01526a7b37
v0.14.1 version bump + updated changelog
2017-10-01 16:32:02 -04:00
Stefan Wojcik
091a02f737
minor .travis.yml comment correction [ci skip]
2017-10-01 16:09:10 -04:00
Erdenezul
aa4996ef28
fix bug query subfield in generic_embedded_document #1651
2017-09-15 11:18:24 +08:00
Andy Yankovsky
2f4e2bde6b
Update AUTHORS
2017-09-14 21:02:53 +03:00
Andy Yankovsky
e90f6a2fa3
Fix update via pull__something__in=[]
2017-09-14 20:28:15 +03:00
Erdenezul Batmunkh
be8f1b9fdd
add failing test for generic_emdedded_document query #1651
2017-09-14 22:24:27 +09:00
Erdenezul Batmunkh
ba99190f53
add tests to increase coverage
2017-09-10 13:09:20 +09:00
Erdenezul Batmunkh
70088704e2
add tests to increase code coverage
2017-09-10 01:37:17 +09:00
Erdenezul
02733e6e58
fix flake8 error #1371
2017-09-02 12:00:57 +09:00
Erdenezul
44732a5dd9
add fix for reload(fields) affect changed fields #1371
2017-09-02 02:05:27 +09:00
Emmanuel Leblond and GitHub
5bdd35464b
Merge pull request #1632 from srinivasreddy/inequality
...
Add missing dunder method - __ne__ to the class GridFSProxy class
2017-08-31 10:15:44 +02:00
Erdenezul
1eae97731f
Fix Document.modify fail on sharded collection #1569
2017-08-30 12:04:04 +08:00
Emmanuel Leblond and GitHub
0325a62f18
Merge pull request #1626 from erdenezul/pointfield_aspymongo
...
added as_pymongo test for PointField #1311
2017-08-28 13:36:35 +02:00
Emmanuel Leblond and GitHub
3a5538813c
Merge pull request #1616 from srinivasreddy/clean_up
...
Add six.moves.range instead of xrange
2017-08-28 13:34:17 +02:00
Emmanuel Leblond and GitHub
1f1b4b95ce
Merge pull request #1617 from srinivasreddy/python36
...
Add python 3.6 support
2017-08-28 13:33:56 +02:00
Emmanuel Leblond and GitHub
8c3ed57ecc
Merge pull request #1630 from MongoEngine/improve-perfs
...
Improve perfs by removing SemiStrictDict
2017-08-28 11:23:35 +02:00
Srinivas Reddy Thatiparthy
dc8a64fa7d
Add missing dunder method - __ne__ to the class GridFSProxy class
2017-08-25 22:02:47 +05:30
Erdenezul
0d1e72a764
Merge branch 'pointfield_aspymongo' of github.com:erdenezul/mongoengine into pointfield_aspymongo
2017-08-25 11:15:51 +08:00
Erdenezul
9b3fe09508
added as_pymongo test for PointField #1311
2017-08-25 11:15:03 +08:00
Srinivas Reddy Thatiparthy
7c0cfb1da2
Add six.moves.range instead of xrange
2017-08-25 00:04:04 +05:30
Srinivas Reddy Thatiparthy
66429ce331
Add python 3.6 support
2017-08-25 00:02:39 +05:30
Emmanuel Leblond
bce859569f
Remove SemiStrictDict to improve perfs
2017-08-24 20:01:09 +02:00
Emmanuel Leblond and GitHub
425fb8905b
Merge pull request #1631 from MongoEngine/fix_travis_ci
...
Fix .install_mongodb_on_travis.sh script (all credit to @erdenezul)
2017-08-24 19:48:15 +02:00
Emmanuel Leblond
4f59c7f77f
Expose to user mongoengine.base.NON_FIELD_ERRORS
...
This variable is used to set the field containing the errors raised in a
clean function. Given those function are user-defined, users should be
able to get the name of the field to easily retreive their custom errors.
2017-08-24 19:47:40 +02:00
Emmanuel Leblond
21d1faa793
Fix .install_mongodb_on_travis.sh script (all credit to @erdenezul)
2017-08-24 19:34:22 +02:00
Erdenezul
b9f3991d03
added as_pymongo test for PointField #1311
2017-08-18 09:31:26 +08:00
Paulo Matos and GitHub
c4de879b20
Clarify comment in validation example
2017-08-11 09:09:33 +02:00
Ali Turki
ee5686e91a
test case for #1602
2017-08-07 11:12:15 +01:00
Ali
2a795e9138
QuerySet limit function now returns all docs in cursor when 0 is passed
2017-08-04 11:31:29 +01:00
erdenezul and GitHub
9a6aa8f8c6
Merge branch 'master' into support_multiple_operator
2017-07-31 22:53:01 +08:00
Stefan Wójcik and GitHub
3794b181d5
Support for $position with the $push operator ( #1566 )
2017-07-31 15:36:35 +02:00
Erdenezul Batmunkh
f09256a24e
Fix modify tests #1565
2017-07-31 18:49:52 +08:00
Erdenezul Batmunkh
34fca9d6f5
Add clear comment and tests for positional push #1565
2017-07-31 18:32:34 +08:00
Erdenezul Batmunkh
433f10ef93
position support singular value #1565
2017-07-31 05:15:34 +00:00
Bo.Yi
9f02f71c52
[fix]fix some personal hobby
2017-07-16 18:47:20 +08:00
Erdenezul Batmunkh
3dcc9bc143
use explicit tests and fix unneccessary indent #1565
2017-07-13 22:59:21 +08:00
erdenezul and GitHub
7311895894
Merge branch 'master' into support_position_in_push
2017-07-13 20:08:57 +08:00
Davidrjx and Stefan Wójcik
a7cab51369
Use a set literal in _clean_settings ( #1585 )
2017-07-13 12:07:36 +02:00
Alex Xu and GitHub
437b11af9a
docs: use explicit register_delete_rule example
...
The previous example of creating bi-directional delete rules was vague since the example defined only one class and the relationship between "Foo" and "Bar" wasn't clear. I added a more explicit example where the relationship between the two classes is explicit.
2017-07-10 16:43:24 -04:00
Bo.Yi
820b5cbb86
[fix]pass test case and fix field type error
2017-07-06 16:07:51 +08:00
Bo.Yi
e6a30f899c
[fix]validation list field with multi choice values
2017-07-06 14:57:03 +08:00
Benoit Larroque
0bc6507df3
Make queryset aggregates obey read_preference
2017-06-27 08:49:06 +02:00
Erdenezul Batmunkh
71c3c632d7
add test case for reverse_delete_rule with pull #1519
2017-06-19 06:01:28 +00:00
Erdenezul Batmunkh
99a5f2cd9d
EmbeddedDocument should not have save method #1552
2017-06-19 05:06:07 +00:00
Erdenezul Batmunkh
fb00b79d19
add docs for positional push operator #1565
2017-06-19 03:28:34 +00:00
Erdenezul Batmunkh
7782aa7379
do not test position push in mongodb_v2.4 #1565
2017-06-19 03:11:59 +00:00
Erdenezul Batmunkh
f3ee4a5dac
add tests for push operator #1565
2017-06-19 02:59:17 +00:00
Stefan Wojcik
a8d6e59a7a
minor tweaks to code quality in _fields_to_dbfields
2017-06-18 17:25:39 -07:00
Danil and Stefan Wójcik
1d4b1870cf
to_db_fields fix ( #1553 )
2017-06-18 17:04:46 -07:00
Erdenezul Batmunkh
f63ad2dd69
dont test in mongoDB v2.4 #1565
2017-06-15 07:36:14 +00:00
Erdenezul Batmunkh
6903eed4e7
support position in 'push' #1565
2017-06-15 06:08:40 +00:00
Erdenezul Batmunkh
b9e922c658
support multiple operator #1510
2017-06-12 04:50:13 +00:00
Freyr
54d8c64ad5
Fixes query operations on BinaryFields
...
Overrides prepare_query_value in BinaryField to wrap the query value in
bson.binary.Binary. This was already done in the to_mongo call when
saving a document, but query operations required the user to convert the
value manually.
Fixes https://github.com/MongoEngine/mongoengine/issues/1127
2017-05-25 10:46:16 -04:00
José Enrique Carrillo Pino and Stefan Wójcik
2f1fe5468e
Fix empty string casted to datetime today in DateTimeField ( #1533 )
2017-05-12 12:59:14 -04:00
lanf0n and Stefan Wójcik
24d15d4274
fix typo in the save() method's docstring ( #1551 )
2017-05-11 10:06:36 -04:00
Stefan Wojcik
0bc7aa52d8
more docs tweaks [ci skip]
2017-05-08 00:14:42 -04:00
Stefan Wojcik
e52603b4a7
ver bump to v0.14.0 + changelog/upgrade docs update
2017-05-08 00:12:26 -04:00
Stefan Wójcik and GitHub
3b88712402
Cleaner as_pymongo ( #1549 )
2017-05-08 00:02:42 -04:00
Stefan Wojcik
33e9ef2106
dont test pypy3 temporarily
2017-05-07 21:37:38 -04:00
Stefan Wojcik
689fe4ed9a
Revert "use a newer pypy3 ( https://github.com/travis-ci/travis-ci/issues/6277 )"
...
This reverts commit 944d1c0a4a .
2017-05-07 21:37:14 -04:00
Stefan Wojcik
b82d026f39
Revert "fix tox.ini"
...
This reverts commit c00914bea2 .
2017-05-07 21:37:05 -04:00
Stefan Wojcik
009059def4
revert #1497
2017-05-07 21:29:13 -04:00
Stefan Wójcik and GitHub
03ff61d113
better db_field validation ( #1547 )
2017-05-07 21:11:14 -04:00
Stefan Wojcik
c00914bea2
fix tox.ini
2017-05-07 20:32:52 -04:00
Stefan Wojcik
944d1c0a4a
use a newer pypy3 ( https://github.com/travis-ci/travis-ci/issues/6277 )
2017-05-07 19:54:58 -04:00
Stefan Wojcik
2cf23e33e3
Document._get_update_doc helper method
2017-05-07 19:26:10 -04:00
Stefan Wojcik
e2a0b42d03
clarify test_get_changed_fields_query_count
2017-04-30 18:29:22 -04:00
Stefan Wójcik and GitHub
894e9818ac
use an external sphinx rtd theme ( #1541 )
...
Externalize Sphinx RTD theme
2017-04-30 15:38:21 -04:00
Stefan Wójcik and GitHub
de18e256ce
clean up the Document._get_collection code ( #1540 )
2017-04-30 14:35:33 -04:00
Stefan Wójcik and GitHub
1a3c70ce1b
make EmbeddedDocument not hashable by default ( #1528 )
2017-04-30 13:30:21 -04:00
Artemiy and Stefan Wójcik
bd4a603e16
Use De Morgan's laws to simplify an expression. ( #1531 )
2017-04-20 10:27:37 -04:00
Jason and Stefan Wójcik
358b80d782
Make the tutorial slightly more intuitive ( #1530 )
2017-04-20 09:11:38 -04:00
Stefan Wojcik
824ec42005
bump version to v0.13.0 and fill in the changelog and the upgrade docs
2017-04-16 14:08:46 -04:00
Stefan Wójcik and GitHub
466935e9a3
Unicode support in EmailField ( #1527 )
2017-04-16 13:58:58 -04:00
Stefan Wojcik
b52d3e3a7b
added one more item to the v0.12.0 changelog
2017-04-07 10:34:04 -04:00
Stefan Wojcik
888a6da4a5
update the changelog and bump the version to v0.12.0
2017-04-07 10:18:39 -04:00
Omer Katz and GitHub
972ac73dd9
Merge pull request #1497 from userlocalhost/feature/order_guarantee
...
added a feature to save object data in order
2017-04-07 10:49:39 +03:00
Hiroyasu OHYAMA
d8b238d5f1
Refactored the implementation of DynamicField extension for storing data in order
2017-04-06 00:42:11 +00:00
Omer Katz and GitHub
63206c3da2
Merge pull request #1520 from ZoetropeLabs/fix/allow-reference-fields-take-object-ids
...
Allow ReferenceFields to take ObjectIds
2017-04-02 13:57:58 +03:00
Richard Fortescue-Webb
5713de8966
Use the objectid in the test
2017-03-29 11:34:57 +01:00
Richard Fortescue-Webb
58f293fef3
Allow ReferenceFields to take ObjectIds
2017-03-29 10:34:50 +01:00
Hiroyasu OHYAMA
ffbb2c9689
This is Additional tests for the container_class parameter of DynamicField
...
This tests DynamicField dereference with ordering guarantee.
2017-03-08 14:46:04 +00:00
Hiroyasu OHYAMA
9cd3dcdebf
Added a test for the change of the condition in DeReference processing
...
This checks DBRef conversion using DynamicField with the ordering
guarantee.
2017-03-08 14:45:43 +00:00
Hiroyasu OHYAMA
f2fe58c3c5
Added a condition to store data to ObjectDict when the items type is it
...
Previous dereference implementation re-contains data as `dict` except
for the predicted type.
But the OrderedDict is not predicted, so the its data would be converted
`dict` implicitly.
As the result, the order of stored data get wrong. And this patch
prevents it.
2017-03-08 14:35:50 +00:00
Stefan Wojcik
b78010aa94
remove test_last_field_name_like_operator (it's a dupe of the same test in tests/queryset/transform.py)
2017-03-05 21:24:46 -05:00
Stefan Wójcik and GitHub
49035543b9
cleanup BaseQuerySet.__getitem__ ( #1502 )
2017-03-05 21:17:53 -05:00
Stefan Wójcik and GitHub
f9ccf635ca
Respect db fields in multiple layers of embedded docs ( #1501 )
2017-03-05 18:20:09 -05:00
Stefan Wojcik
e8ea294964
test negative indexes ( closes #1119 )
2017-03-05 18:12:01 -05:00
Stefan Wojcik
19ef2be88b
fix #937
2017-03-05 00:05:33 -05:00
Stefan Wojcik
30e8b8186f
clean up document instance tests
2017-03-02 00:25:56 -05:00
Stefan Wójcik and GitHub
741643af5f
clean up field unit tests ( #1498 )
2017-03-02 00:05:10 -05:00
Hiroyasu OHYAMA
6aaf9ba470
removed a checking of dict order because this order is not cared (some implementation might be in ordered, but other one is not)
2017-03-01 09:32:28 +00:00
Hiroyasu OHYAMA
5957dc72eb
To achive storing object data in order with minimum implementation, I
...
changed followings.
- added optional parameter `container_class` which enables to choose
intermediate class at encoding Python data, instead of additional
field class.
- removed OrderedDocument class because the equivalent feature could
be implemented by the outside of Mongoengine.
2017-03-01 09:20:57 +00:00
Hiroyasu OHYAMA
e32a9777d7
added test for OrderedDynamicField and OrderedDocument
2017-02-28 03:35:53 +00:00
Hiroyasu OHYAMA
84a8f1eb2b
added OrderedDocument class to decode BSON data to OrderedDict for retrieving data in order
2017-02-28 03:35:39 +00:00
Hiroyasu OHYAMA
6810953014
added OrderedDynamicField class to store data in the defined order because of #203
2017-02-28 03:34:42 +00:00
Ephraim Berkovitch and Stefan Wójcik
398964945a
Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )
2017-02-27 09:42:44 -05:00
Stefan Wójcik and GitHub
5f43c032f2
revamp the "connecting" user guide and test more ways of connecting to a replica set ( #1490 )
2017-02-26 21:29:06 -05:00
Stefan Wojcik
627cf90de0
tutorial tweaks: better copy + use py3-friendly syntax
2017-02-26 20:30:37 -05:00
Omer Katz and Stefan Wójcik
2bedb36d7f
Test against multiple MongoDB versions in Travis ( #1074 )
2017-02-26 14:52:43 -05:00
Stefan Wójcik and GitHub
e93a95d0cb
Test and document controlling the size of the connection pool ( #1489 )
2017-02-25 14:09:10 -05:00
Stefan Wójcik and GitHub
3f31666796
Fix the exception message when validating unicode URLs ( #1486 )
2017-02-24 16:18:34 -05:00
Stefan Wojcik
3fe8031cf3
fix EmbeddedDocumentListFieldTestCase
2017-02-22 12:44:05 -05:00
bagerard and Stefan Wójcik
b27c7ce11b
allow to use sets in field choices ( #1482 )
2017-02-15 08:51:47 -05:00
Stefan Wojcik
ed34c2ca68
update the changelog and upgrade docs
2017-02-09 12:13:56 -08:00
Stefan Wójcik and GitHub
3ca2e953fb
Fix limit/skip/hint/batch_size chaining ( #1476 )
2017-02-09 12:02:46 -08:00
martin sereinig and Stefan Wójcik
d8a7328365
Fix docs regarding reverse_delete_rule and delete signals ( #1473 )
2017-02-06 14:11:42 -07:00
Stefan Wojcik
f33cd625bf
nicer readme
2017-01-17 02:47:45 -05:00
Stefan Wojcik
80530bb13c
nicer readme
2017-01-17 02:46:37 -05:00
Stefan Wójcik and GitHub
affc12df4b
Update README.rst
2017-01-17 02:43:29 -05:00
Stefan Wojcik
4eedf00025
nicer readme note about dependencies
2017-01-17 02:42:23 -05:00
Eli Boyarski and Stefan Wójcik
e5acbcc0dd
Improved a docstring for FieldDoesNotExist ( #1466 )
2017-01-09 11:24:27 -05:00
Stefan Wojcik
1b6743ee53
add a changelog entry about broken references raising DoesNotExist
2017-01-08 14:50:16 -05:00
Eli Boyarski and Stefan Wójcik
b5fb82d95d
Typo fix ( #1463 )
2017-01-08 12:57:36 -05:00
lanf0n and Stefan Wójcik
193aa4e1f2
[ #1459 ] fix typo __neq__ to __ne__ ( #1461 )
2017-01-05 22:37:09 -05:00
Stefan Wójcik and GitHub
ebd34427c7
Cleaner Document.save ( #1458 )
2016-12-30 05:43:56 -05:00
Stefan Wójcik and GitHub
3d75573889
Validate db_field ( #1448 )
2016-12-29 12:39:05 -05:00
Stefan Wójcik and GitHub
c6240ca415
Test connection's write concern ( #1456 )
2016-12-29 12:37:38 -05:00
Stefan Wójcik and GitHub
2ee8984b44
add a $rename operator ( #1454 )
2016-12-28 23:25:38 -05:00
Stefan Wojcik
b7ec587e5b
better docstring for BaseDocument.to_json
2016-12-28 22:15:46 -05:00
Stefan Wojcik
47c58bce2b
fix "connect" example in the docs
2016-12-28 21:08:18 -05:00
Stefan Wojcik
96e95ac533
minor readme tweaks
2016-12-28 17:18:55 -05:00
Stefan Wojcik
b013a065f7
remove readme mention of the irc channel
2016-12-28 11:50:28 -05:00
Stefan Wojcik
74b37d11cf
only validate db_field if it's a string type
2016-12-28 11:46:18 -05:00
Stefan Wójcik and GitHub
c6cc013617
fix BaseQuerySet.fields when mixing exclusion/inclusion with complex values like $slice ( #1452 )
2016-12-28 11:40:57 -05:00
Stefan Wójcik and GitHub
f4e1d80a87
support a negative dec operator ( #1450 )
2016-12-28 02:04:49 -05:00
Stefan Wójcik and GitHub
91dad4060f
raise an error when trying to save an abstract document ( #1449 )
2016-12-28 00:51:47 -05:00
Stefan Wojcik
e07cb82c15
validate db_field
2016-12-27 17:38:26 -05:00
Stefan Wojcik
2770cec187
better docstring for BaseQuerySet.fields
2016-12-27 10:20:13 -05:00
Stefan Wojcik
5c3928190a
fix line width
2016-12-22 13:20:05 -05:00
Manuel Jeckelmann and Stefan Wójcik
9f4b04ea0f
Fix querying an embedded document field by an invalid value ( #1440 )
2016-12-22 13:19:18 -05:00
Stefan Wojcik
96d20756ca
remove redundant whitespace
2016-12-22 13:13:19 -05:00
John Dupuy and Stefan Wójcik
b8454c7f5b
Fixed ListField deletion bug ( #1435 )
2016-12-22 13:11:44 -05:00
George Karakostas and Stefan Wójcik
c84f703f92
Update documentation to include a Q import ( #1441 )
2016-12-22 13:06:55 -05:00
Manuel Jeckelmann and Stefan Wójcik
57c2e867d8
Remove py26 from contributing docs ( #1439 )
...
Python 2.6 is not supported anymore with version 0.11.0
2016-12-19 17:54:43 -05:00
Stefan Wojcik
553f496d84
fix tests
2016-12-13 00:42:03 -05:00
Stefan Wojcik
b1d8aca46a
update the changelog
2016-12-12 23:33:49 -05:00
Stefan Wojcik
8e884fd3ea
make the __in=non_iterable_or_doc tests more concise
2016-12-12 23:30:38 -05:00
Malthe Jørgensen and Stefan Wójcik
76524b7498
Raise TypeError when __in-operator used with a Document ( #1237 )
2016-12-12 23:27:25 -05:00
Stefan Wojcik
65914fb2b2
fix the way MongoDB URI w/ ?replicaset is passed
2016-12-12 23:24:19 -05:00
Stefan Wojcik
a4d0da0085
update the changelog
2016-12-12 23:08:57 -05:00
Stefan Wójcik and GitHub
c9d496e9a0
Fix connecting to MongoReplicaSetClient ( #1436 )
2016-12-12 23:08:11 -05:00
Stefan Wojcik
88a951ba4f
version bump
2016-12-12 19:03:21 -05:00
Stefan Wójcik and GitHub
403ceb19dc
set @wojcikstefan as the maintainer ( closes #1342 ) ( #1434 )
2016-12-12 10:44:03 -05:00
Stefan Wójcik and GitHub
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Gilbert Gilb's and Stefan Wójcik
3135b456be
Upgrade notice for 0.10.7 ( #1433 )
2016-12-11 15:38:06 -05:00
Omer Katz
0be6d3661a
Merge branch 'master' of git://github.com/mrTable/mongoengine
2016-12-11 10:52:08 +02:00
Stefan Wojcik
6f5f5b4711
version bump (forgot to do it with v0.10.8 release, so have to go for v0.10.9)
2016-12-10 23:36:06 -05:00
Stefan Wojcik
c6c5f85abb
update the changelog with everything we've added in v0.10.8
2016-12-10 23:30:16 -05:00
Stefan Wójcik and GitHub
7b860f7739
Deprecate Python v2.6 ( #1430 )
2016-12-10 13:29:31 -05:00
Stefan Wojcik
e28804c03a
add venv & venv3 to .gitignore
2016-12-10 13:11:37 -05:00
Stefan Wójcik and GitHub
1b9432824b
Add ability to filter the generic reference field by ObjectId and DBRef ( #1425 )
2016-12-09 12:56:06 -05:00
Дмитрий Янцен
3b71a6b5c5
Improved tests to avoid regression Issue #1103
2016-12-06 11:33:44 +05:00
Дмитрий Янцен
7ce8768c19
Added rounding for unicode return value of to_mongo in DecimalField. Closes #1103
2016-12-06 10:42:10 +05:00
rmendocna and Stefan Wójcik
25e0f12976
fix delete cascade for models without a literal id field: replace with pk ( #1247 )
2016-12-05 22:54:21 -05:00
Stefan Wójcik and GitHub
f168682a68
Dont let the MongoDB URI override connection settings it doesnt explicitly specify ( #1421 )
2016-12-05 22:31:00 -05:00
Stefan Wójcik and GitHub
d25058a46d
Implement BaseQuerySet.batch_size ( #1426 )
2016-12-05 22:13:22 -05:00
Stefan Wójcik and GitHub
4d0c092d9f
Fix iteration within iteration ( #1427 )
2016-12-05 09:38:24 -05:00
Stefan Wójcik and GitHub
15714ef855
Fix __repr__ method of the StrictDict ( #1424 )
2016-12-04 16:10:59 -05:00
Stefan Wójcik and GitHub
eb743beaa3
fix doc.get_<field>_display + unit test inspired by #1279 ( #1419 )
2016-12-04 00:34:24 -05:00
Stefan Wójcik and GitHub
0007535a46
Add support for cursor.comment ( #1420 )
2016-12-04 00:33:42 -05:00
Stefan Wójcik and GitHub
8391af026c
Fix filtering by embedded_doc=None ( #1422 )
2016-12-04 00:32:53 -05:00
Stefan Wójcik and GitHub
800f656dcf
remove unnecessary randomness in indexes tests ( #1423 )
2016-12-04 00:31:54 -05:00
Stefan Wojcik
088c5f49d9
update the changelog
2016-12-03 16:32:14 -05:00
Ollie Ford and Stefan Wójcik
d8d98b6143
Support Falsey primary_keys ( #1354 )
2016-12-03 16:10:05 -05:00
zeez and Stefan Wójcik
02fb3b9315
Support for authentication mechanism #905 ( #1333 )
2016-12-03 16:08:24 -05:00
Francesc Elies and Stefan Wójcik
4f87db784e
Make the README example easier to replicate ( #1382 )
2016-12-02 22:05:20 -05:00
Jérôme Lafréchoux and GitHub
7e6287b925
Merge pull request #1417 from MongoEngine/fix-db-field-in-sum-and-average
...
Fix BaseQuerySet#sum and BaseQuerySet#average for fields that specify a db_field
2016-12-02 20:53:48 +01:00
Stefan Wojcik
999cdfd997
Fix BaseQuerySet#sum and BaseQuerySet#average for fields that specify a db_field
2016-12-02 11:32:38 -05:00
Jérôme Lafréchoux and GitHub
8d6cb087c6
Fix changelog
2016-11-29 09:28:13 +01:00
Stefan Wojcik
2b7417c728
add a missing entry to the changelog
2016-11-28 19:33:11 -05:00
Stefan Wójcik and GitHub
3c455cf1c1
Improve health of this package ( #1409 )
...
* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -05:00
Stefan Wójcik and GitHub
5135185e31
Use SVG in README badges
2016-11-28 12:31:50 -05:00
Stefan Wojcik
b461f26e5d
version bump
2016-11-28 10:42:05 -05:00
Stefan Wojcik
faef5b8570
finalize the v0.10.7 changelog
2016-11-28 10:40:20 -05:00
Omer Katz and GitHub
0a20e04c10
Merge pull request #1383 from BenCoDev/patch-1
...
Dictionnary Field recommended use
2016-11-27 18:39:04 +02:00
Stefan Wojcik
d19bb2308d
add #1389 to the changelog
2016-11-24 09:40:17 -05:00
BenCotte
d8dd07d9ef
Updating Dict Fields use description
...
Update dict fields use misleading description to clarify use case.
2016-11-20 11:22:34 +01:00
Omer Katz and GitHub
36c56243cd
Merge pull request #1399 from sallyruthstruik/master
...
Add info in CHANGELOG
2016-11-20 10:28:14 +02:00
Stanivlav Kaledin
23d06b79a6
Add info in CHANGELOG
2016-11-17 19:05:46 +03:00
Omer Katz and GitHub
e4c4e923ee
Merge pull request #1397 from sallyruthstruik/master
...
Fixed issue https://github.com/MongoEngine/mongoengine/issues/442
2016-11-17 11:32:09 +02:00
Omer Katz and GitHub
936d2f1f47
Merge pull request #1334 from touilleMan/bug-892
...
Raise DoesNotExist when dereferencing unknown document
2016-11-17 11:31:15 +02:00
Emmanuel Leblond
07018b5060
Raise DoesNotExist when dereferencing unknown document
2016-11-17 09:21:34 +01:00
Stanivlav Kaledin
ac90d6ae5c
Don't force _cursor
2016-11-14 20:06:34 +03:00
Stanivlav Kaledin
2141f2c4c5
Fixed issue https://github.com/MongoEngine/mongoengine/issues/442
...
Added support for pickling BaseQueryset instances
Added BaseQueryset.__getstate__, BaseQuerySet.__setstate__ methods
2016-11-14 19:57:48 +03:00
Jérôme Lafréchoux
81870777a9
Update changelog
2016-10-24 12:00:01 +02:00
Jérôme Lafréchoux and GitHub
845092dcad
Merge pull request #1390 from closeio/dont-test-on-py-32
...
Don't run tests for python 3.2
2016-10-20 09:42:13 +02:00
Stefan Wojcik
dd473d1e1e
remove v3.2 from .travis.yml
2016-10-19 18:15:15 -04:00
Stefan Wojcik
d2869bf4ed
Merge branch 'master' of github.com:MongoEngine/mongoengine into dont-test-on-py-32
2016-10-19 18:13:41 -04:00
Jérôme Lafréchoux and GitHub
891a3f4b29
Merge pull request #1391 from closeio/fix-py26
...
Fix Python 2.6 tests
2016-10-19 23:24:55 +02:00
Jérôme Lafréchoux and GitHub
6767b50d75
Merge pull request #1389 from jtharpla/topic/fix-hosts-as-list
...
Fix connecting to a list of hosts
2016-10-19 23:01:21 +02:00
Stefan Wojcik
d9e4b562a9
for good measure, remove py32 from the commented-out envlist, too
2016-10-19 16:30:39 -04:00
Stefan Wojcik
fb3243f1bc
readme fix
2016-10-19 16:23:48 -04:00
Stefan Wojcik
5fe1497c92
remove rednose from tox deps
2016-10-19 16:14:02 -04:00
Stefan Wojcik
5446592d44
remove rednose to see if it masks another issue
2016-10-19 16:05:59 -04:00
Stefan Wojcik
40ed9a53c9
dont run tests for python 3.2
2016-10-19 15:43:07 -04:00
Jeff Tharp
f7ac8cea90
Fix connecting to a list of hosts
2016-10-19 11:57:02 -07:00
Jérôme Lafréchoux and GitHub
4ef5d1f0cd
Merge pull request #1384 from closeio/fix-email-address-english
...
Use proper English spelling for "email address"
2016-10-12 17:40:52 +02:00
Thomas Steinacher
6992615c98
Use English spelling for "email address"
2016-10-12 16:59:54 +02:00
BenCotte and GitHub
43dabb2825
Dictionnary Field recommended use
...
At Dictionary Fields description, it seems that the intent of the sentence make more sense by adding : "not".
2016-10-11 18:14:17 +02:00
Jérôme Lafréchoux and GitHub
05e40e5681
Merge pull request #1128 from iici-gli/master
...
Fixed: ListField minus index assignment does not work #1119
2016-09-07 09:29:31 +02:00
Gang Li
2c4536e137
redo fix for ListField loses use_db_field when serializing #1217
...
The new fix reverted the change on BaseField to_mongo so that it will not force
new field class to add kwargs to to_mongo function. The new derived field class
to_mongo can support use_db_field and fields parameters as needed.
Basically all field classes derived from ComplexBaseField support those parameters.
2016-09-06 17:27:47 -04:00
Jérôme Lafréchoux and GitHub
3dc81058a0
Merge pull request #1346 from anih/master
...
Speed up checking if we passed missing field
2016-09-06 09:51:33 +02:00
anih and GitHub
bd84667a2b
fixes
2016-09-06 09:27:41 +02:00
iici-gli and GitHub
e5b6a12977
Merge pull request #1 from MongoEngine/master
...
pull new changes from original
2016-09-04 23:43:04 -04:00
Gang Li
ca415d5d62
Fix for:Base document _mark_as_changed bug #1369
2016-09-04 14:20:59 -04:00
Jérôme Lafréchoux and GitHub
99b4fe7278
Merge pull request #1351 from mindojo-victor/1176
...
Fix for #1176 -- similar to https://github.com/MongoEngine/mongoengin…
2016-09-04 09:18:14 +02:00
Victor
327e164869
Fix for #1176 -- similar to https://github.com/MongoEngine/mongoengine/pull/982 but for update.
2016-09-04 08:12:17 +03:00
Jérôme Lafréchoux and GitHub
25bc571f30
Merge pull request #1331 from bagerard/fix_unit_test
...
fixes in the test suite
2016-09-03 22:54:28 +02:00
Jérôme Lafréchoux and GitHub
38c7e8a1d2
Merge pull request #1363 from skoval00/fix-misleading-comment
...
Fix misleading comment about the descriptor
2016-09-03 22:03:06 +02:00
Jérôme Lafréchoux and GitHub
ca282e28e0
Merge pull request #1360 from Gallaecio/patch-1
...
Fix array-slicing documentation
2016-08-22 10:13:08 +02:00
Sergey Kovalev
5ef59c06df
Fix misleading comment about the descriptor
2016-08-13 09:41:26 +03:00
Gallaecio and GitHub
8f55d385d6
Fix array-slicing documentation
...
Fixes #1359 .
2016-08-11 08:52:53 +02:00
Jérôme Lafréchoux and GitHub
cd2fc25c19
Merge pull request #1353 from DionysusG/master
...
fix typo at docs/guide/defineing-documents.rst
2016-08-04 11:28:11 +02:00
DionysusG
709983eea6
fix typo at docs/guide/defineing-documents.rst
2016-08-04 16:21:52 +08:00
anih and GitHub
40e99b1b80
Speed up checking if we passed missing field
2016-07-27 12:10:46 +02:00
Jérôme Lafréchoux and GitHub
488684d960
Merge pull request #1340 from latteier/master
...
fix example for register_delete_rule. see issue #1339
2016-07-18 22:54:54 +02:00
Amos Latteier
f35034b989
fix example for register_delete_rule. see issue #1339
2016-07-18 13:23:01 -07:00
Omer Katz and GitHub
9d6f9b1f26
Merge pull request #1336 from closeio/aggregate-sum-and-avg
...
Replace map-reduce based QuerySet.sum/average with aggregation-based implementations
2016-07-12 11:20:13 +03:00
Stefan Wojcik
6148a608fb
update the changelog
2016-07-11 10:45:40 -07:00
Stefan Wojcik
3fa9e70383
prefer tuples over lists for immutable structures
2016-07-11 10:42:27 -07:00
Stefan Wojcik
16fea6f009
replace QuerySet.sum/average implementations with aggregate_sum/average + tweaks
2016-07-10 13:21:12 -07:00
Bastien Gérard
df9ed835ca
fixes in unit tests
2016-07-02 23:01:36 +02:00
Jérôme Lafréchoux and GitHub
e394c8f0f2
Merge pull request #1328 from anentropic/upsert-docs-fix
...
better description for upsert arg on some methods
2016-06-29 15:56:45 +02:00
Anentropic
21974f7288
better description for upsert arg on some methods
2016-06-29 14:24:33 +01:00
Jérôme Lafréchoux and GitHub
5ef0170d77
Merge pull request #1324 from vahana/patch-1
...
Update changelog.rst
2016-06-24 19:58:31 +02:00
vahan and GitHub
c21dcf14de
Update changelog.rst
2016-06-24 13:45:42 -04:00
Jérôme Lafréchoux and GitHub
a8d20d4e1e
Merge pull request #1313 from roivision/master
...
Fix for issue # 1278
2016-06-24 17:46:04 +02:00
Jérôme Lafréchoux and GitHub
8b307485b0
Merge pull request #1314 from adamchainz/readthedocs.io
...
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-17 14:55:04 +02:00
Adam Chainz
4544afe422
Convert readthedocs links for their .org -> .io migration for hosted projects
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
2016-06-16 21:21:10 +01:00
Jérôme Lafréchoux
9d7eba5f70
Merge pull request #1307 from xiaost/update-for-1304
...
Update changelog for #1304
2016-06-02 20:38:25 +02:00
xiaost
be0aee95f2
Update changelog for #1304
2016-06-03 01:27:39 +08:00
Omer Katz
3469ed7ab9
Merge pull request #1304 from xiaost/fix-no-cursor-timeout
...
Fix no_cursor_timeout with pymongo3
2016-05-29 10:15:20 +03:00
xiaost
1f223aa7e6
Fix no_cursor_timeout with pymongo3
2016-05-26 00:29:41 +08:00
Omer Katz
0a431ead5e
Merge pull request #1289 from closeio/fix-typo
...
Fix typo in the docstring for __len__
2016-05-05 15:53:00 +03:00
Stefan Wojcik
f750796444
fix typo
2016-05-04 17:11:38 -07:00
vahan
c82bcd882a
Merge pull request #1 from roivision/dynamic_document_dict_fix
...
* fixed the bug where dynamic doc has indx inside dict field
2016-05-01 23:07:24 -04:00
vahan
7d0ec33b54
* fixed the bug where dynamic doc has indx inside dict field
2016-05-01 22:59:39 -04:00
Omer Katz
43d48b3feb
Merge pull request #1271 from maitbayev/master
...
Fixes unicode bug in EmbeddedDocumentListField
2016-04-17 09:15:23 +03:00
Omer Katz
2e406d2687
Merge pull request #1277 from shushen/Bug-681
...
Fix AttributeError when initializing EmbeddedDocuments
2016-04-11 12:57:08 +03:00
Shu Shen
3f30808104
Fix AttributeError when creating EmbeddedDocument
...
When an EmbeddedDocument is initialized with positional arguments, the
document attempts to read _auto_id_field attribute which may not exist
and would throw an AttributeError exception and fail the initialization.
This change and the test is based on the discussion in issue #681 and
PR #777 with a number of community members.
2016-04-07 15:18:33 -07:00
Omer Katz
ab10217c86
Merge pull request #1270 from Neurostack/master
...
Bug fixed accessing BaseList with negative indices
2016-03-31 22:27:56 +03:00
Neurostack and Joshua Nedrud
00430491ca
Fixed bug accessing ListField (BaseList) with negative indices
...
If you __setitem__ in BaseList with a negative index and then try to save this, you will get an error like: OperationError: Could not save document (cannot use the part (shape of signal.shape.-1) to traverse the element ({shape: [ 0 ]})). To fix this I rectify negative list indices in BaseList _mark_as_changed as the appropriate positive index. This fixes the above error.
2016-03-31 08:04:19 -06:00
Madiyar Aitbayev
109202329f
Handles unicode correctly EmbeddedDocumentListField
2016-03-31 02:33:13 +01:00
Omer Katz
3b1509f307
Added changelog entry for #1267 .
2016-03-26 09:13:25 +03:00
Omer Katz
7ad7b08bed
Merge pull request #1267 from wishtack/hotfix-map-field-unicode-key
...
Fix MapField in order to handle unicode keys.
2016-03-26 09:06:24 +03:00
Younes JAAIDI
4650e5e8fb
Fix MapField in order to handle unicode keys.
2016-03-25 12:42:00 +01:00
Omer Katz
af59d4929e
Merge pull request #1254 from gilbsgilbs/fix_long_fields_python3
...
Fix long fields python3
2016-03-23 15:17:06 +02:00
Gilb's
e34100bab4
Another attempt to fix random fails of test test_compound_key_dictfield.
2016-03-18 23:43:23 +01:00
Gilb's
d9b3a9fb60
Use six integer types instead of explicit types, since six is now a dependency of the project.
2016-03-18 19:51:09 +01:00
Gilb's
39eec59c90
Fix test failing randomly because of concurrency.
2016-03-18 19:45:34 +01:00
Gilb's
d651d0d472
Fix tests and imports. issue #1253
2016-03-18 19:45:34 +01:00
Gilbert Gilb's
87a2358a65
Fix unused variable. issue #1253
2016-03-18 19:45:34 +01:00
Gilbert Gilb's
cef4e313e1
Update changelog for #1253
2016-03-18 19:45:34 +01:00
Gilbert Gilb's
7cc1a4eba0
Fix long fields stored as int32 in Python 3. issue #1253
2016-03-18 19:45:34 +01:00
Omer Katz
c6cc0133b3
Merge pull request #1240 from gukoff/long_in_floatfield
...
Added support for long values in FloatFields
2016-03-18 10:24:53 +02:00
Omer Katz
7748e68440
Adjust changelog for #1188 .
2016-03-10 12:19:11 +02:00
Omer Katz
6c2230a076
Merge pull request #1188 from DavidBord/fix-1187
...
fix-#1187: count on ListField of EmbeddedDocumentField fails
2016-03-10 12:18:20 +02:00
Konstantin Gukov and Konstantin Gukov
66b233eaea
Added the six module to test int/long support
2016-03-06 23:01:49 +05:00
Konstantin Gukov and Konstantin Gukov
fed58f3920
Added support for long values in FloatFields
2016-02-24 14:07:22 +05:00
Omer Katz
815b2be7f7
Merge pull request #1183 from bitdivision/patch-1
...
Add EmbeddedDocumentListField to user guide
2016-02-24 09:01:54 +02:00
Omer Katz
f420c9fb7c
Merge pull request #1235 from hhstore/master
...
fix a small bug - ReferenceField() comment give a wrong demo .
2016-02-24 08:58:40 +02:00
Omer Katz
01bdf10b94
Merge pull request #1241 from gukoff/broad_exceptions
...
Fixed too broad exception clauses in the project
2016-02-24 08:57:21 +02:00
Konstantin Gukov and Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
9e9703183f
Add test for nested list in EmbeddedDocument
2016-02-19 02:16:37 +01:00
Emmanuel Leblond
adce9e6220
Raise OperationError in drop_collection if no collection is set
2016-02-19 01:58:15 +01:00
Emmanuel Leblond
c499133bbe
Add missing drop_collection in tests fields
2016-02-19 00:11:30 +01:00
hhstore
8f505c2dcc
fix a small bug - ReferenceField() comment give a wrong demo .
2016-02-17 10:55:31 +08:00
Emmanuel Leblond
b320064418
Add signal_kwargs arg for save/delete/bulk insert
2016-02-09 14:28:55 +01:00
Emmanuel Leblond
a643933d16
Fix cascade delete mixing among collections
2016-01-30 11:59:55 +01:00
Omer Katz
2659ec5887
Merge pull request #1196 from nickptrvc/master
...
Fix pre_bulk_insert signal
2016-01-30 12:25:29 +02:00
Emmanuel Leblond
9f8327926d
Improve a bit queryset's test_elem_match
2016-01-28 18:18:51 +01:00
Emmanuel Leblond
7a568dc118
Add version 0.10.7 - DEV in changelog.rst
2016-01-26 15:54:57 +01:00
Emmanuel Leblond
c946b06be5
Merge pull request #1218 from bbenne10/master
...
Curry **kwargs through to_mongo on fields
2016-01-26 15:53:21 +01:00
Bryan Bennett and Bryan Bennett
c65fd0e477
Note changes for #1217 in Changelog
2016-01-26 08:34:52 -05:00
Bryan Bennett and Bryan Bennett
8f8217e928
Add Bryan Bennett to AUTHORS
2016-01-26 08:34:52 -05:00
Bryan Bennett and Bryan Bennett
6c9e1799c7
MongoEngine/mongoengine #1217 : Curry **kwargs through to_mongo on fields
2016-01-26 08:34:52 -05:00
Emmanuel Leblond
decd70eb23
Merge pull request #1220 from bagerard/patch-1
...
fixed minor typo in docstring
(PR has been issued by mistake to dev branch insteed of master)
2016-01-26 00:28:04 +01:00
Emmanuel Leblond
a20d40618f
Bump to v0.10.6
2016-01-25 01:42:19 +01:00
Emmanuel Leblond
b4af8ec751
Fix travis for python 3.2
2016-01-22 08:38:42 +01:00
Bastien
feb5eed8a5
fixed minor typo in docstring
2016-01-21 16:59:37 +01:00
Emmanuel Leblond
f4fa39c70e
Revert "Force pip version to 7.1.2 in tox for py32 (support dropped for latter versions)"
...
This reverts commit 7b7165f5d8 .
2016-01-20 13:07:06 +01:00
Emmanuel Leblond
7b7165f5d8
Force pip version to 7.1.2 in tox for py32 (support dropped for latter versions)
2016-01-20 11:48:31 +01:00
Emmanuel Leblond
13897db6d3
Fix mongomock url prefix error during connection
2016-01-20 11:06:45 +01:00
Emmanuel Leblond
c4afdb7198
Merge pull request #1123 from Cykooz/master
...
Fixed detection of shared connections
2016-01-19 18:38:03 +01:00
Emmanuel Leblond
0284975f3f
Correct test_reload_of_non_strict_with_special_field_name for pymongo<2.9
2016-01-19 15:34:38 +01:00
Omer Katz
269e3d1303
Merge pull request #1205 from Zephor5/patch-1
...
add highlight for python code
2016-01-13 15:59:08 +02:00
Zephor
8c81f7ece9
add highlight for python code
2016-01-06 12:00:48 +08:00
Omer Katz
f6e0593774
Merge pull request #1198 from rusnassonov/patch-1
...
fix missing quote in /docs/guide/mongomock.rst
2015-12-27 13:54:58 +02:00
Ruslan Nassonov
3d80e549cb
fix missing quote in /docs/guide/mongomock.rst
2015-12-25 15:52:35 +05:00
Nick Pjetrovic
acc7448dc5
Fix pre_bulk_insert signal
2015-12-24 18:30:46 -05:00
David Bordeynik
35d3d3de72
fix-#1187: count on ListField of EmbeddedDocumentField fails
2015-12-15 22:27:53 +02:00
Omer Katz
0372e07eb0
Merge pull request #1114 from gmacon/sparse-compound
...
Allow sparse compound indexes
2015-12-10 07:27:22 +02:00
George Macon and George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05:00
bitdivision
9c264611cf
Add EmbeddedDocumentListField to user guide
...
The 'defining a document' section currently doesn't include EmbeddedDocumentListField. Only EmbeddedDocumentField
2015-12-09 11:40:22 +00:00
Omer Katz
31d7f70e27
Merge pull request #1153 from AWhetter/fixWindowsTest
...
Fixed not being able to run tests on Windows
2015-12-08 20:29:28 +02:00
Ashley Whetter and Ashley Whetter
04e8b83d45
Fixed being unable to run tests on Windows
2015-12-08 18:08:10 +00:00
Omer Katz
e87bf71f20
Merge pull request #1170 from hhstore/master
...
fix for docs.code.tumblelog.py
2015-12-08 07:16:59 +02:00
Omer Katz
2dd70c8d62
Merge pull request #1180 from moonso/add-mongomock-docs
...
Added page for documenting mongomock. Updated docs/guide/index.rst
2015-12-06 13:23:04 +02:00
moonso
a3886702a3
Added page for documenting mongomock. Updated docs/guide/index.rst
2015-12-06 11:02:26 +01:00
Omer Katz
713af133a0
Moved #1151 changelog entry to the correct version.
2015-12-06 07:54:25 +02:00
Omer Katz
057ffffbf2
Merge pull request #1151 from RussellLuo/feature-support-mocking
...
Add support for mocking MongoEngine based on mongomock
2015-12-06 07:53:00 +02:00
RussellLuo
a81d6d124b
Update AUTHORS and add changelog entry for #1151
2015-12-06 11:11:46 +08:00
RussellLuo
23f07fde5e
Add support for mocking MongoEngine based on mongomock
...
Using `mongomock://` scheme in URI enables the mocking. Fix #1045 .
2015-12-06 11:08:00 +08:00
Omer Katz
b42b760393
Merge branch 'fix-reloading-strict' of https://github.com/paularmand/mongoengine into fix-reloading-strict and bumped version.
...
# Conflicts:
# AUTHORS
2015-11-30 12:13:47 +02:00
Omer Katz
bf6f4c48c0
Merge pull request #1167 from BeardedSteve/upsert_one
...
Upsert one
2015-11-30 12:08:04 +02:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
Paul-Armand Verhaegen
3c18f79ea4
Added test for reloading of strict with special fields #1156
2015-11-27 23:45:25 +01:00
hhstore
2af8342fea
bugfix - two small bugs.
2015-11-26 12:01:42 +08:00
srossiter
fc3db7942d
updated changelog and version tuple
2015-11-24 12:56:59 +00:00
srossiter
164e2b2678
Docstring change and rename variable to avoid clash with kwargs
2015-11-24 12:53:09 +00:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Omer Katz
a6e996d921
Added #1165 to the changelog.
2015-11-24 07:06:54 +02:00
Omer Katz
07e666345d
Merge pull request #1165 from touilleMan/bug-1164
...
Add SaveConditionError to __all__
2015-11-24 07:04:54 +02:00
Omer Katz
007f10d29d
Merge pull request #1161 from AWhetter/docFix
...
Fixed a couple of documentation typos
2015-11-24 07:01:49 +02:00
Omer Katz
f9284d20ca
Moved #1042 to the next version in the changelog.
2015-11-24 07:00:09 +02:00
Omer Katz
9050869781
Merge pull request #1042 from closeio/fix-read-preference
...
Fix read_preference
2015-11-24 06:58:51 +02:00
Stefan Wojcik
54975de0f3
fix read_preference for PyMongo 3+
2015-11-23 10:46:52 -08:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
Omer Katz
6868f66f24
Merge pull request #1155 from AWhetter/fix837
...
ReferenceFields can now reference abstract Document types
2015-11-23 15:52:54 +02:00
Omer Katz
3c0b00e42d
Added python 3.5 to the build.
2015-11-23 15:40:16 +02:00
Omer Katz
3327388f1f
Merge pull request #1122 from larsbutler/improve-reverse_delete_rule-docs
...
fields.ReferenceField: add integer values to `reverse_delete_rule` docs
2015-11-23 15:29:20 +02:00
Ashley Whetter
04497aec36
Fixed setting dbref to True on abstract reference fields causing the reference to be stored incorrectly
2015-11-23 13:21:30 +00:00
Ashley Whetter
aa9d596930
Updated documentation for abstract reference changes
2015-11-23 13:21:30 +00:00
Ashley Whetter
f96e68cd11
Made type inheritance a validation check for abstract references
2015-11-23 13:20:35 +00:00
Ashley Whetter
013227323d
ReferenceFields can now reference abstract Document types
...
A class that inherits from an abstract Document type is stored in the database
as a reference with a 'cls' field that is the class name of the document being
stored.
Fixes #837
2015-11-23 13:20:35 +00:00
Omer Katz
19cbb442ee
Added #1129 to the changelog.
2015-11-23 13:57:15 +02:00
Omer Katz
c0e7f341cb
Merge pull request #1129 from illico/feature/arbitrary-metadata
...
Indirection-free optimized field metadata.
2015-11-23 12:49:48 +02:00
Emmanuel Leblond
0a1ba7c434
Add SaveConditionError to __all__
2015-11-21 10:25:11 +01:00
Omer Katz
b708dabf98
Merge pull request #1158 from gmacon/551-shard-key-embedded
...
Allow shard key to be in an embedded document (#551 )
2015-11-20 07:50:52 +02:00
George Macon
899e56e5b8
Add gmacon to AUTHORS
2015-11-19 17:15:43 -05:00
George Macon
f6d3bd8ccb
Update changelog for #551
2015-11-19 17:15:27 -05:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Omer Katz
5c464c3f5a
Bumped version to 0.10.1
2015-11-18 14:07:39 +02:00
Ashley Whetter
cceef33fef
Fixed a couple of documentation typos
2015-11-17 14:22:10 +00:00
Paul-Armand Verhaegen
ed8174fe36
Added Paul-Armand Verhaegen to contributor list
2015-11-15 15:32:26 +01:00
Paul-Armand Verhaegen
3c8906494f
Added #1156 to changelog
2015-11-15 15:31:22 +01:00
Paul-Armand Verhaegen
6e745e9882
fixed wrong indentation style
2015-11-10 21:13:24 +01:00
Paul-Armand Verhaegen
fb4e9c3772
fix for reloading of strict with special fields
2015-11-10 20:43:49 +01:00
Omer Katz
2c282f9550
Added changelog entry for #1131 .
2015-11-08 12:18:12 +02:00
Omer Katz
d92d41cb05
Merge pull request #1131 from noirbizarre/fix-instance-back-references
...
Fix instance back references
2015-11-08 12:14:37 +02:00
Omer Katz
82e7050561
Merge pull request #1134 from abonhomme/patch-1
...
docstring correction
2015-11-05 15:49:53 +02:00
abonhomme
44f92d4169
docstring correction
...
Corrected the docstring for `mongoengine.queryset.base.update_one()`
2015-10-23 11:07:26 -04:00
David Bordeynik
2f1fae38dd
Merge pull request #1117 from reallistic/master
...
Enable ops in queries using elemMatch for EmbeddedDocuments
fixes #1130
2015-10-21 08:40:39 +03:00
Axel Haustant
9fe99979fe
Fix tests on Python 2.6 (assertIsNotNone does not exists)
2015-10-19 18:04:15 +02:00
Axel Haustant
6399de0b51
Fix _instance on list of EmbeddedDocuments
2015-10-19 16:39:00 +02:00
Axel Haustant
959740a585
Fix false positive test on _instance
2015-10-19 16:33:40 +02:00
reallistic
159b082828
Recursively create mongo query for embeddeddocument elemMatch
2015-10-18 16:34:24 -07:00
Gang Li
8e7c5af16c
Merge remote-tracking branch 'remotes/upstream/master'
...
Conflicts:
AUTHORS
docs/changelog.rst
2015-10-18 01:28:50 -04:00
Gang Li
c1645ab7a7
restored
2015-10-18 01:14:27 -04:00
Gang Li
2ae2bfdde9
updated changelog.rst for #1119
2015-10-18 00:31:40 -04:00
Gang Li
3fe93968a6
update test case for: Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-18 00:19:36 -04:00
Omer Katz
79a2d715b0
Merge pull request #1121 from larsbutler/simplify-install-deps
...
Move nose/rednose from install dependencies to test dependencies
2015-10-14 12:45:14 +03:00
Alice Bevan–McGregor
50b271c868
Arbitrary metadata documentation.
2015-10-13 22:51:03 -04:00
Alice Bevan–McGregor
a57f28ac83
Correction for local monkeypatch.
2015-10-13 22:41:58 -04:00
Alice Bevan–McGregor
3f3747a2fe
Minor formatting tweaks and additional comments.
2015-10-13 21:59:46 -04:00
Alice Bevan–McGregor
d133913c3d
Remove now superfluous special cases.
...
Removes `verbose_name`, `help_text`, and `custom_data`. All three are
covered by the one metadata assignment and will continue working as
expected.
2015-10-13 21:59:29 -04:00
Alice Bevan–McGregor
e049cef00a
Add arbitrary metadata capture to BaseField.
...
Includes ability to detect and report conflicts.
2015-10-13 21:54:58 -04:00
Gang Li
eb8176971c
Removed "elif field.default" block to avoid silently, inconsistently changing database
...
This resolved issue Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-12 23:33:54 -04:00
Gang Li
5bbfca45fa
Fixed: ListField minus index assignment does not work #1119
...
Add code to detect '-1' as a integer.
Normalize negative index to regular list index
Added list assignment test case
2015-10-12 10:34:26 -04:00
Lars Butler
9b500cd867
docs/changelog.rst: fix #1079 to version 0.10.1 - DEV
2015-10-12 10:13:41 +02:00
Lars Butler
b52cae6575
AUTHORS: Add Lars Butler (that's me!)
2015-10-12 10:13:11 +02:00
Lars Butler
35a0142f9b
setup.py, tox.ini: move nose/rednose from install deps to test deps
...
Remove nose/rednose from `setup_requires` and instead declare them in
`tests_require`. Also explicitly add `nose` and `rednose` to
dependencies list in tox.ini (to avoid breaking test runs).
`python setup.py nosetests` is the preferred way for running tests, and
this works, except that placing test deps (nose/rednose) in the
`setup_requires` also means that these dependencies are pulled in for
installs of mongoengine. These deps are not actually be required just
to run mongoengine, so setup.py should not force users to install these
dependencies.
This refactoring should not change any test run semantics.
2015-10-12 10:13:11 +02:00
David Bordeynik
d4f6ef4f1b
Merge pull request #1113 from DavidBord/fix-1105
...
fix-#1105: StrictDict & SemiStrictDict are shadowed at init time
2015-10-11 21:14:05 +03:00
Kirill Kuzminykh
11024deaae
Fixed detection of shared connections
2015-10-05 22:40:44 +03:00
Lars Butler
5a038de1d5
fields.ReferenceField: add integer values to reverse_delete_rule docs
...
When I first tried to use the `reverse_delete_rule` feature of
`ReferenceField`, I had to dig through the source code to find what the
actual integer values were expected to be for DO_NOTHING, NULLIFY,
CASCADE, DENY, and PULL (or at least, where these constants were defined
so that I could import and use them). This patch adds the integer values
for those constants (which are defined in mongoengine.queryset.base) to
the docs so that users can easily choose the correct integer value.
Note: A possible improvement on this change would be to include
`mongoengine.queryset.base` module documentation in the generated docs,
and then update the `ReferenceField` docs to link to the documentation
of these constants (DO_NOTHING, NULLIFY, etc.).
2015-10-05 14:37:03 +02:00
Emmanuel Leblond
903982e896
Merge pull request #1088 from touilleMan/bug-1058
...
Fix DictField with '_cls' field is converted to Document on access
2015-09-21 12:10:23 +02:00
David Bordeynik
6355c404cc
fix-#1105: StrictDict & SemiStrictDict are shadowed at init time
2015-09-16 20:27:52 +03:00
Emmanuel Leblond
92b9cb5d43
Add drop_collection for test_subclass_field_query
2015-09-08 17:35:35 +02:00
Emmanuel Leblond
7580383d26
Add #1050 fix to changelog
2015-09-02 19:00:18 +02:00
Catstyle and Emmanuel Leblond
ba0934e41e
added DynamicTest.test_reload_dynamic_field
2015-09-02 18:42:30 +02:00
Catstyle and Emmanuel Leblond
a6a1021521
use obj._data instead of self._fields_ordered since DynamicDocument missing some attributes
2015-09-02 18:42:30 +02:00
Emmanuel Leblond
33b4d83c73
Merge pull request #1084 from optik/patch-1
...
Bad property name for text search index meta
2015-09-02 18:27:10 +02:00
Emmanuel Leblond
6cf630c74a
Merge pull request #1096 from vasion/save-condition-for-2.4
...
save_condition uses "n" instead of "nModified"
2015-09-02 18:23:37 +02:00
Emmanuel Leblond
736fe5b84e
Fix unwanted dereference in DictField (issue #1058 )
2015-08-30 10:01:24 +02:00
Omer Katz
4241bde6ea
Merge pull request #1055 from zxhuang/master
...
comply to pymongo MongoClient constructor host
2015-08-16 11:52:27 +03:00
Momchil Rogelov
b4ce14d744
use n instead of nModified in save_condition
2015-08-13 10:11:42 +01:00
Momchil Rogelov
10832a2ccc
save_condition falls back to "n" if "nModified" is not found to support mongo 2.4
2015-08-12 10:57:20 +01:00
Emmanuel Leblond
91aca44f67
Merge pull request #1093 from touilleMan/bug-1069
...
Replace disconnect with close method in pymongo
2015-08-10 18:40:59 +02:00
Emmanuel Leblond
96cfbb201a
Replace use close method in pymongo
2015-08-04 18:02:57 +02:00
David Bordeynik
b2bc155701
Merge pull request #1087 from marcoskv/patch-1
...
QuerySet count vs len #937
2015-08-01 11:22:35 +03:00
marcoskv
a70ef5594d
QuerySet count vs len #937
...
Current documentation does not consider performance issues in using len instead of count.
https://github.com/MongoEngine/mongoengine/issues/937
2015-07-26 22:41:24 +02:00
optik
6d991586fd
Bad property name for indices description in docs
...
The correct name for MongoDB index definition property is weights not weight. Using "weight" will cause "Index with name ... already exists with different options"
2015-07-24 15:26:10 +02:00
Emmanuel Leblond
f8890ca841
Merge pull request #1070 from touilleMan/save-condition-error
...
Use SaveConditionError instead of OperationError in save_condition
2015-07-19 11:18:33 +02:00
Emmanuel Leblond
0752c6b24f
Update changelog for #1070
2015-07-19 10:33:54 +02:00
Emmanuel Leblond
3ffaf2c0e1
Correct SaveConditionError involved tests
2015-07-15 11:59:29 +02:00
Emmanuel Leblond
a3e0fbd606
Add SaveConditionError exception
2015-07-15 11:15:40 +02:00
Emmanuel Leblond
9c8ceb6b4e
Merge pull request #1060 from touilleMan/GenericReferenceField-choices
...
Fix GenericReferenceField choices parameter
2015-07-09 11:38:22 +02:00
Emmanuel Leblond
bebce2c053
Clean ununsed variables in iterations
2015-07-09 10:51:04 +02:00
Emmanuel Leblond
34c6790762
Simplify implementation of choices in GenericReferenceField
2015-07-06 10:10:05 +02:00
Emmanuel Leblond
a5fb009b62
Fix GenericReferenceField choices with DBRef and let it possible to set Document choice as string
2015-07-06 02:33:43 +02:00
David Bordeynik
9671ca5ebf
Merge pull request #1049 from DavidBord/fix-842
...
fix-#842: Fix ignored chained options
2015-07-03 08:23:15 +03:00
David Bordeynik
5334ea393e
fix-#842: Fix ignored chained options
2015-07-02 23:08:09 +03:00
Zeke Huang
2aaacc02e3
comply to pymongo MongoClient constructor host
...
Only MongoReplicaSetClient use hosts_or_uri param and it will be deprecated soon.
2015-07-01 12:39:30 -07:00
Matthieu Rigal
222e929b2d
Merge pull request #1048 from amitlicht/amitlicht/1047_cached_reference_field_bugfix
...
Suggested fix for #1047 : CachedReferenceField DBRefs bug
2015-07-01 08:53:03 +02:00
amitlicht
6f16d35a92
Adding a changelog line & adding myself to AUTHORS.
2015-06-30 15:08:20 +03:00
amitlicht
d7a2ccf5ac
Adding a test case for #1047 .
2015-06-30 15:03:06 +03:00
amitlicht
9ce605221a
Suggested fix for #1047 : CachedReferenceField creates DBRef on to_python, but can't save them on to_mongo.
...
Dereferencing DBRef to document type before returning it from to_python.
2015-06-28 17:53:20 +03:00
Matthieu Rigal
1e930fe950
Merge branch 'emilecaron-master'
2015-06-26 17:59:25 +02:00
Matthieu Rigal
4dc158589c
Moved change to right place and added fancier test
2015-06-26 17:58:53 +02:00
emilecaron
4525eb457b
update changelog
2015-06-26 14:23:42 +02:00
emilecaron
56a2e07dc2
always store docs in cascade_refs
2015-06-26 10:45:07 +00:00
emilecaron
9b7fe9ac31
restore broken behavior
2015-06-26 09:31:07 +00:00
emilecaron
c3da07ccf7
Merge branch 'master' of https://github.com/emilecaron/mongoengine
2015-06-26 08:54:12 +00:00
emilecaron
b691a56d51
late set instanciation
2015-06-26 08:52:30 +00:00
Emile Caron
13e0a1b5bb
Merge pull request #1 from emilecaron/fix_delete_rule_cascade_cycle
...
Fix delete rule cascade cycle
2015-06-25 21:53:04 +02:00
emilecaron
646baddce4
fix cascade delete cycle issuue
2015-06-25 18:27:22 +00:00
emilecaron
02f61c323d
update test
2015-06-25 18:26:52 +00:00
emilecaron
1e3d2df9e7
fix illogicality
2015-06-25 15:40:12 +00:00
emilecaron
e43fae86f1
reproduce RuntimeError
2015-06-25 15:37:15 +00:00
Matthieu Rigal
c6151e34e0
Bumped version to 0.10.0
2015-06-24 12:39:21 +02:00
Matthieu Rigal
45cb991254
Merge pull request #980 from MRigal/fix/various-fixes
...
Pep8, code clean-up and 0.10.0 changelog finalisation
2015-06-24 10:20:42 +02:00
Matthieu Rigal
839bc99f94
Updated changelog to prepare 0.10.0 release
2015-06-24 01:16:32 +02:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +02:00
Matthieu Rigal
cd76a906f4
Set coverage to specific version as 4+ is not Python 3.2 compatible
2015-06-24 00:49:39 +02:00
mrigal and Matthieu Rigal
e438491938
typos
2015-06-23 23:16:08 +02:00
mrigal and Matthieu Rigal
307b35a5bf
some more update, mainly docs
2015-06-23 23:16:08 +02:00
mrigal and Matthieu Rigal
217c9720ea
added iterkeys method and optimized repr, still very ugly
2015-06-23 23:15:44 +02:00
mrigal and Matthieu Rigal
778c7dc5f2
general pep8 and more clean-up
2015-06-23 23:15:44 +02:00
Matthieu Rigal
4c80154437
Merge pull request #1014 from kivistein/fix-705
...
Allow to add custom metadata to fields
2015-06-23 23:06:05 +02:00
Vicky Donchenko
6bd9529a66
Allow to add custom metadata to fields
2015-06-23 16:25:56 +03:00
Matthieu Rigal
33ea2b4844
Merge pull request #1036 from MRigal/snario-min-distance
...
Added test, doc to implementation of min_distance query
2015-06-22 18:35:45 +02:00
Matthieu Rigal
5c807f3dc8
Various test adjustments to improve stability independantly of execution order
2015-06-22 16:41:36 +02:00
Matthieu Rigal
9063b559c4
Fix for PyMongo3+
2015-06-22 16:40:50 +02:00
Matthieu Rigal
40f6df7160
Adapted one more test for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
95165aa92f
Logic and test adaptations for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
d96fcdb35c
Fixed problem of ordering when using near_sphere operator
2015-06-22 14:57:58 +02:00
Matthieu Rigal
5efabdcea3
Added tests, documentation and simplified code
2015-06-22 14:57:58 +02:00
Liam Horne and Matthieu Rigal
2d57dc0565
Fixed an indentation mistake
2015-06-22 14:57:30 +02:00
lihorne and Matthieu Rigal
576629f825
Added support for $minDistance query
2015-06-22 14:57:30 +02:00
Matthieu Rigal
5badb9d151
Merge pull request #1035 from MRigal/fix/882-dynamic-lookup-more-than-two-parts
...
Simplified lookup_field mechanic and allow dynamic lookup for more than two parts
2015-06-22 14:56:15 +02:00
Matthieu Rigal
45dc379d9a
Added to changelog
2015-06-22 14:55:38 +02:00
Matthieu Rigal
49c0c9f44c
Simplified lookup-field method, allowing dynamic lookup for more than two parts
2015-06-22 14:55:06 +02:00
Matthieu Rigal
ef5fa4d062
Merge pull request #1037 from MRigal/fix/1008-delete-returns-none-allowed
...
Added test and fix for delete with write_concern w:0
2015-06-22 14:50:04 +02:00
Matthieu Rigal
35b66d5d94
Merge pull request #1020 from nextoa/master
...
Improve _created status when switching collection and/or db
2015-06-21 13:32:02 +02:00
Matthieu Rigal
d0b749a43c
Made test explicit with an assert
2015-06-21 13:02:59 +02:00
Matthieu Rigal
bcc4d4e8c6
Added test and fix for delete with write_concern w:0
2015-06-21 03:40:45 +02:00
Breeze.kay
41bff0b293
remove testcase:test_signals_with_switch_sharding_db() and fix code style error for pull#1020
2015-06-21 09:32:31 +08:00
Breeze.kay
dfc7f35ef1
add testcase and changelog for pull:#1020 'improve _created status when switch collection and db'
2015-06-19 15:40:05 +08:00
Breeze.kay
0bbbbdde80
Merge remote-tracking branch 'MongoEngine/master'
2015-06-19 11:14:51 +08:00
Matthieu Rigal
5fa5284b58
Merge pull request #1021 from elasticsales/aggregate-sum-and-avg
...
aggregate_sum/average + unit tests
2015-06-18 23:14:27 +02:00
Stefan Wojcik
b7ef82cb67
style tweaks + changelog entry
2015-06-18 11:02:11 -07:00
Stefan Wojcik
1233780265
make aggregate_sum/average compatible with pymongo 3.x
2015-06-18 11:01:37 -07:00
Stefan Wojcik
dd095279c8
aggregate_sum/average + unit tests
2015-06-18 11:01:37 -07:00
Matthieu Rigal
4d5200c50f
Merge pull request #1031 from MRigal/fix/1011-capped-collection-size-multiple-of-256
...
CappedCollection max_size normalized to multiple of 256
2015-06-15 15:25:33 +02:00
Matthieu Rigal
1bcd675ead
Python 3 fix, uses floor division
2015-06-15 13:44:11 +02:00
Matthieu Rigal
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Matthieu Rigal
b124836f3a
Merge pull request #936 from MRigal/fix/712-avoid-crash-looping-on-corrupted-obj-id
...
changed ObjectIdField to_python() method to avoid crash, issue 712
2015-06-14 23:31:22 +02:00
Matthieu Rigal
93ba95971b
Merge pull request #1029 from MRigal/feature/300-remove-get-or-create
...
Removed get_or_create() method, deprecated since 0.8
2015-06-13 01:09:29 +02:00
Matthieu Rigal
7b193b3745
Merge pull request #1030 from MongoEngine/improved-doc-sequence-field
...
Improved doc for SequenceField
2015-06-12 22:17:01 +02:00
Matthieu Rigal
2b647d2405
Improved doc for SequenceField
...
Related to issue #497
2015-06-12 21:20:59 +02:00
Matthieu Rigal
7714cca599
Removed get_or_create() method, deprecated since 0.8
2015-06-12 20:51:59 +02:00
Matthieu Rigal
42511aa9cf
Merge pull request #1028 from MRigal/fix/652-url-field-validation-too-restrictive-use-django-validation
...
Updated URL and Email regex validators, added schemes to url validator
2015-06-12 20:47:58 +02:00
Matthieu Rigal
ace2a2f3d1
Merge pull request #1027 from MRigal/fix/530-combining-only-and-save-deletes-embedded-fields-value-with-default
...
Added passing test to prove save and only problem was fixed
2015-06-12 20:40:51 +02:00
Matthieu Rigal
2062fe7a08
Merge pull request #1026 from MRigal/fix/497-sequence-field-with-abstract-classes
...
SequenceField for abstract classes now have a proper name
2015-06-12 15:17:08 +02:00
Matthieu Rigal
d4c02c3988
Added to changelog
2015-06-12 13:12:35 +02:00
Matthieu Rigal
4c1496b4a4
Updated URL and Email field regex validators, added schemes arg to urlfield
2015-06-12 13:10:36 +02:00
Matthieu Rigal
eec876295d
Added passing test to prove save and only problem was fixed
2015-06-12 12:13:28 +02:00
Matthieu Rigal
3093175f54
SequenceField for abstract classes now have a proper name
2015-06-12 11:03:52 +02:00
Matthieu Rigal
dd05c4d34a
Merge pull request #1024 from touilleMan/issue-1017
...
Fix #1017 (document clash between same ids but different collections)
2015-06-12 09:24:32 +02:00
Matthieu Rigal
57e3a40321
Merge pull request #1025 from MRigal/feature/259-improve-error-detection-for-invalid-query
...
Improve error message for invalid query
2015-06-12 09:13:18 +02:00
Matthieu Rigal
9e70152076
Merge pull request #961 from MRigal/id-meta-foo
...
Fixes and tests for default 'id' field creation in Document metaclass
2015-06-12 09:13:00 +02:00
Matthieu Rigal
e1da83a8f6
Cosmetic
2015-06-12 09:12:19 +02:00
Matthieu Rigal
8108198613
corrected formatting for Python 2.6 compatibility
2015-06-11 22:48:34 +02:00
Matthieu Rigal
915849b2ce
Implemented method to auto-generate non-collisioning auto_id names
2015-06-11 22:48:34 +02:00
mrigal and Matthieu Rigal
2e96302336
not in fix
2015-06-11 22:47:10 +02:00
mrigal and Matthieu Rigal
051cd744ad
added another test to proove we still do not handle all cases well
2015-06-11 22:47:10 +02:00
mrigal and Matthieu Rigal
53fbc165ba
added content of PR #688 with a test to proove it is a bit right
2015-06-11 22:47:10 +02:00
mrigal and Matthieu Rigal
1862bcf867
added test for abstract document without pk creation and adapted behaviour
2015-06-11 22:47:10 +02:00
Omer Katz
8909d1d144
Merge pull request #1005 from touilleMan/master
...
Raise error if save_condition fails #991
2015-06-11 22:25:17 +03:00
Matthieu Rigal
a2f0f20284
Improve error message for invalid query
2015-06-11 17:48:34 +02:00
Emmanuel Leblond
1951b52aa5
Fix #1017 (document clash between same ids but different collections)
2015-06-11 14:55:04 +02:00
Emmanuel Leblond
cd7a9345ec
Add issue related in changelog.rst
2015-06-11 14:45:19 +02:00
Matthieu Rigal
dba4c33c81
Merge pull request #1016 from bigblind/patch-2
...
Solution for documentation issue #1003
2015-06-11 14:40:41 +02:00
Emmanuel Leblond
153c239c9b
Replace assertRaisesRegexp by assertRaises (python2.6 compatibility)
2015-06-11 14:36:51 +02:00
Emmanuel Leblond
4034ab4182
Clean save_condition exception implementation and related tests
2015-06-11 14:30:10 +02:00
Emmanuel Leblond
9c917c3bd3
Update changelog
2015-06-11 14:30:10 +02:00
Emmanuel Leblond
cca0222e1d
Update AUTHORS
2015-06-11 14:29:42 +02:00
Emmanuel Leblond
682db9b81f
Add versionchanged to document save_condition
2015-06-11 14:29:42 +02:00
Emmanuel Leblond
3e000f9be1
Raise error if save_condition fails #991
2015-06-11 14:29:42 +02:00
Matthieu Rigal
548a552638
Merge pull request #994 from MRigal/fix/cls-index-at-desired-position
...
Added hashed index, a bit more of geo-indexes, possibility to give _cls
2015-06-11 14:20:01 +02:00
Matthieu Rigal
1d5b5b7d15
Merge pull request #1018 from MRigal/fix/517-no_dereference-not-respected-on-embedded-docs
...
Respect no_dereference() on embedded docs containing Ref
2015-06-11 14:16:11 +02:00
Frederik Creemers
91aa4586e2
Fixes after code review
2015-06-04 22:38:11 +02:00
Matthieu Rigal
6d3bc43ef6
Merge pull request #1000 from ProgressivePlanning/test_update_related
...
added passing test for updates on related models
2015-06-04 19:18:11 +02:00
Marcel van den Elst
0f63e26641
use AssertEqual instead of AssertListEqual for py2.6 compatibility
2015-06-04 15:02:32 +02:00
Breeze.kay
ab2ef69c6a
improve _created status when switch collection and db
2015-06-03 18:13:54 +08:00
Matthieu Rigal
621350515e
Added test was still failing and implemented solution as described in #517
2015-06-03 01:02:19 +02:00
Matthieu Rigal
03ed5c398a
Merge pull request #1007 from charanpald/master
...
GridFS files never deleted with Document deletion
2015-06-02 23:43:57 +02:00
Frederik Creemers
65d6f8c018
Solution for documentation issue #1003
...
Solution for documentation issue #1003 . The explanation about reverse_delete_rule was a bit mixed up.
2015-06-02 12:35:25 +02:00
Charanpal
79d0673ae6
Merge remote-tracking branch 'origin/patch-2'
2015-06-02 10:49:25 +01:00
Charanpal
cbd488e19f
Merge remote-tracking branch 'origin/patch-1'
2015-06-02 10:49:15 +01:00
Charanpal Dhanjal
380d869195
Add fix to FileField deletion
2015-06-02 10:23:37 +01:00
Charanpal Dhanjal
73893f2a33
Added charanpald
2015-06-02 10:20:37 +01:00
Charanpal Dhanjal
ad81470d35
Put space after hash
2015-06-02 10:17:17 +01:00
Charanpal Dhanjal
fc140d04ef
Fix comment in delete
2015-06-02 10:15:27 +01:00
Matthieu Rigal
a0257ed7e7
Updated test to use new create_index method
2015-06-02 00:14:18 +02:00
Matthieu Rigal
4769487c3b
Merge pull request #1012 from elin3t/patch-1
...
little object name fix in the readme
2015-06-01 23:46:36 +02:00
Matthieu Rigal
29def587ff
Merge pull request #1004 from brunopgalvao/patch-1
...
spelling change definion to definition
2015-06-01 23:27:50 +02:00
Matthieu Rigal
f35d0b2b37
Added create_index method, warnings for drop_dups and a geohaystack test
2015-06-01 23:12:43 +02:00
Matthieu Rigal
283e92d55d
Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs
2015-06-01 22:11:21 +02:00
Eliecer Daza
c82b26d334
little object name fix
...
replace little object name HtmlPost with TextPost that is the one used on the example
2015-05-31 18:28:12 -05:00
Charanpal
2753e02cda
Fix for case where Document is deleted and it's files (FieldFields) in GridFS remain.
2015-05-23 14:46:56 +01:00
Bruno Pierri Galvao
fde733c205
spelling change definion to definition
2015-05-21 10:22:02 -04:00
Marcel van den Elst
f730591f2c
added passing test for updates on related models
...
ref #570 : test would fail from v0.8.5 up, but fixed in master
2015-05-20 13:01:44 +02:00
David Bordeynik
94eac1e79d
Merge pull request #946 from MRigal/fix/pymongo3-connection
...
fixes #946
2015-05-11 15:51:51 +03:00
Matthew Ellison
9f2b6d0ec6
Merge pull request #894 from MongoEngine/topic/not-in-style-issue
...
Code Cleanup
- Use not in instead of not (x in y)
2015-05-08 09:06:32 -04:00
Omer Katz
7d7d0ea001
Use not in instead of not (x in y).
2015-05-08 12:50:34 +03:00
Matthieu Rigal
794101691c
removed wire_concern usage and cosmetics
2015-05-07 19:34:31 +02:00
Matthew Ellison
a443144a5c
Merge pull request #995 from seglberg/PR/952-squash
...
Unit Test - Unique Multikey Index
2015-05-07 13:12:11 -04:00
Eli Boyarski and Matthew Ellison
73f0867061
Unit Test - Unique Multikey Index
...
Adds a unit test to exhibit the behavior of MongoDB when using a unique
multikey index. MongoDB treats any missing unique multikey index value
as NULL, thus throwing a Duplicate Key Error when saving multiple
missing values.
See #930 for more information.
- Closes #930
- Closes #952
2015-05-07 11:16:47 -04:00
Matthieu Rigal
f97db93212
corrected test for MongoDB 2.X
2015-05-07 12:48:25 +02:00
Matthieu Rigal
d36708933c
author and changelog
2015-05-07 12:48:25 +02:00
Matthieu Rigal
14f82ea0a9
enabled PYMONGO 3 and DEV for travis
2015-05-07 12:47:31 +02:00
Matthieu Rigal
c41dd6495d
corrected connection test for PyMongo3+
2015-05-07 12:47:31 +02:00
Matthieu Rigal
1005c99e9c
corrected index test for MongoDB 3+
2015-05-07 12:47:31 +02:00
Matthieu Rigal
f4478fc762
removed sleep thanks to @seglberg suggestion
2015-05-07 12:47:31 +02:00
mrigal and Matthieu Rigal
c5ed308ea5
comments update after having tested PyMongo 3.0.1
2015-05-07 12:47:31 +02:00
mrigal and Matthieu Rigal
3ab5ba6149
added explicit warnings when calling methods having no effect anymore with PyMongo3+
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
9b2fde962c
added try except to geo test to catch random mongo internal errors
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
571a7dc42d
Fix last issue with binary field as primary key and skipped new test
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
3421fffa9b
reactivated unnecessarily skipped test
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
c25619fd63
improved deprecation documentation and added warning when using snapshot with PyMongo3
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
76adb13a64
Minor text and comments enhancements
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
33b1eed361
corrected logical test for not Pymongo3 versions
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
c44891a1a8
changed unittest to call for compatibility with Python 2.6
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
f31f52ff1c
corrected test condition, depending on mongodb and not pymongo version
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
6ad9a56bd9
corrected bad import preventing to run on PyMongo 2.X versions
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
a5c2fc4f9d
reinforced test for BinaryField being a Primary Key
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
0a65006bb4
replaced find_and_modify by PyMongo3 equivalents
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
3db896c4e2
work-around for pymongo 3 bug
2015-05-07 12:47:30 +02:00
mrigal and Matthieu Rigal
e80322021a
corrected and enhanced geo_index test
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
c0f1493473
fix revert situated at the wrong location
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
ccbd128fa2
first adaptations after comments and find-outs
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
46817caa68
various unused imports removed (I am allergic)
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
775c8624d4
change to try to address issues due to new save() behaviour, not satisfying, some tests are still failing
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
36eedc987c
adapted index test to new explain output in pymongo3 and added comment to a possible pymongo3 bug
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
3b8f31c888
fix problems with cursor arguments
2015-05-07 12:47:29 +02:00
mrigal and Matthieu Rigal
a34fa74eaa
fix connection problems with pymongo3 and added tests
2015-05-07 12:47:29 +02:00
Matthieu Rigal
d6b2d8dcb5
Merge pull request #982 from elephanter/operator_name_in_field_name
...
Added __ support to escape field name in fields lookup keywords that match operators names
2015-05-07 11:47:12 +02:00
Eremeev Danil
aab0599280
test moved to another file, cosmetical fixes
2015-05-07 10:55:35 +05:00
Eremeev Danil
dfa8eaf24e
Added changeset, updated documentation and tests, changed test condition
2015-05-07 10:55:35 +05:00
Eremeev Danil
63d55cb797
solution for #949
2015-05-07 10:54:16 +05:00
Matthieu Rigal
c642eee0d2
Merge pull request #992 from touilleMan/master
...
Add primary_key notice in defining-documents doc according to issue #985
2015-05-06 23:13:20 +02:00
Emmanuel Leblond
5f33d298d7
Fix typo in guide/defining-documents.rst
2015-05-06 21:32:36 +02:00
Emmanuel Leblond
fc39fd7519
Update defining-documents.rst
...
Add primary_key notice according to issue #985
2015-05-06 18:30:49 +02:00
Matthew Ellison
7f442f7485
Merge pull request #978
2015-05-06 09:41:00 -04:00
rma4ok and Matthew Ellison
0ee3203a5a
[docs] Adding SortedListField fix to changelog
2015-05-06 09:40:36 -04:00
rma4ok and Matthew Ellison
43a5df8780
[dist] Adding rma4ok to contributors
2015-05-06 09:40:09 -04:00
rma4ok and Matthew Ellison
0949df014b
[fix] SortedListField: update whole list if order is changed
2015-05-06 09:40:08 -04:00
Matthew Ellison
01f4dd8f97
Merge pull request #989
2015-05-06 09:38:26 -04:00
Matthew Ellison
8b7599f5d9
Merge pull request #900
2015-05-06 09:37:56 -04:00
Stefan Wojcik
9bdc320cf8
dont send a "cls" option to ensureIndex (related to https://jira.mongodb.org/browse/SERVER-769 )
2015-05-06 11:25:45 +02:00
Matthew Ellison
d9c8285806
Merge pull request #988 from olivierlefloch/master
...
Fix code formatting in upgrade doc
2015-05-05 09:08:43 -04:00
Gregor Kališnik
4b8344082f
Testing if we can query embedded document's field inside MapField. Part of #912 , which is fixed in 0.9.
2015-05-05 12:49:45 +02:00
Olivier Le Floch
e5cf76b460
Match other code blocks
...
This fixes rendering on the documentation website:
http://docs.mongoengine.org/upgrade.html
2015-05-04 15:02:01 -07:00
David Bordeynik
422ca87a12
Merge pull request #979 from DavidBord/fix-453
...
fix-#453: Queryset update doesn't go through field validation
2015-05-02 20:26:56 +03:00
David Bordeynik
a512ccca28
fix-#453: Queryset update doesn't go through field validation
2015-05-02 15:15:02 +03:00
Matthew Ellison
ba215be97c
Merge pull request #984 from asmacdo/asmacdo-patch-1
...
Update docs with NotUniqueError
2015-05-01 07:22:50 -04:00
Austin
ca16050681
Update docs with NotUniqueError
...
This was changed in https://github.com/MongoEngine/mongoengine/pull/62 . It is present in versions > 0.7 http://docs.mongoengine.org/changelog.html#changes-in-0-7-0 . I can reopen against an older branch if preferred.
2015-04-30 16:02:50 -04:00
Matthew Ellison
06e4ed1bb4
Merge pull request #976 from seglberg/bugfix/#954-ref-field-subclass
...
Reflect Inheritance in Field's 'owner_document'
2015-04-30 09:22:15 -04:00
Matthieu Rigal
d4a8ae5743
Merge pull request #932 from elephanter/nested_map_fields_delta_fix
...
fix wrong _delta results on nested MapFields #931
2015-04-30 10:55:12 +02:00
Eremeev Danil
a4f2f811d3
removed forgotten print
2015-04-30 09:33:19 +05:00
Eremeev Danil
ebaba95eb3
fixed same bug for nested List inside MapField, little code refactoring, added test for nested list and nested reference fields
2015-04-30 09:33:19 +05:00
Eremeev Danil
31f7769199
percent string formatting changed to format method
2015-04-30 09:33:19 +05:00
elephant and Eremeev Danil
7726be94be
fixed wrong _delta results on nested MapFields #931
2015-04-30 09:33:18 +05:00
Matthew Ellison
f2cbcea6d7
Unit Tests for #954 Fail on Exception, not Error
2015-04-29 14:26:05 -04:00
Matthew Ellison
5d6a28954b
Reflect Inheritance in Field's 'owner_document'
...
The 'owner_document' property of a Field now reflects the parent field
which first contained the Field when a Document in inherited.
Fixes #954
Closes #955
2015-04-29 14:23:57 -04:00
Sridhar Sundarraman and Matthew Ellison
319f1deceb
Unit Test to Demonstrate #954
2015-04-29 14:23:57 -04:00
Omer Katz
3f14958741
Merge pull request #957 from noirbizarre/metastrict
...
Allow to loads undeclared field with meta attribute (fix #934 )
2015-04-29 19:32:26 +03:00
Matthew Ellison
42ba4a5c56
Merge pull request #960 from noirbizarre/tox
...
Tox support for cross-versions testing
2015-04-28 20:29:23 -04:00
Axel Haustant
c804c395ed
Post rebase and Django removal tuning (and prepare for PyMongo 3)
2015-04-28 21:36:07 +02:00
Axel Haustant
58c8cf1a3a
Split dependencies installation and test running avoing travis_retry on tests
2015-04-28 20:20:21 +02:00
Axel Haustant
76ea8c86b7
Use travis_retry on tox execution
2015-04-28 20:20:21 +02:00
Axel Haustant
050378fa72
Little README tuning
2015-04-28 20:20:21 +02:00
Axel Haustant
29d858d58c
Removed the deprecated py3where parameter
2015-04-28 20:20:21 +02:00
Axel Haustant
dc45920afb
Added missing coveralls install
2015-04-28 20:19:56 +02:00
Axel Haustant
15fcb57e2f
Fix typo in travis config
2015-04-28 20:19:56 +02:00
Axel Haustant
91ee85152c
Tests/Tox/TravisCI improvements
2015-04-28 20:19:56 +02:00
mrigal and Axel Haustant
aa7bf7af1e
adapted setup.cfg to use nosetests standard and allow usage of --tests argument, documenting it in the readme
2015-04-28 20:08:54 +02:00
Axel Haustant
02c1ba39ad
Added Django 1.8 to tox
2015-04-28 18:54:10 +02:00
Axel Haustant
8e8d9426df
Document about tox testing
2015-04-28 18:54:10 +02:00
Axel Haustant
57f301815d
Added a tox.ini file allowing to test with different versions
2015-04-28 18:54:10 +02:00
Matthew Ellison
dfc9dc713c
Merge pull request #973 from seglberg/feature/#958-django-split
...
Removed Django Support from MongoEngine
+1 @thedrow @MRigal @DavidBord @rozza
2015-04-28 10:37:22 -04:00
Matthew Ellison
1a0cad7f5f
Updated Django Support Documentation
...
Added "Call to Arms" for new Django Extension.
2015-04-28 10:02:39 -04:00
Omer Katz
3df436f0d8
Merge pull request #974 from eli-b/spelling
...
Spelling
2015-04-26 20:15:46 +03:00
Eli Boyarski
d737fca295
Spelling
2015-04-26 17:23:13 +03:00
Omer Katz
da5a3532d7
Merge pull request #967 from RussellLuo/master
...
Override `authentication_source` by "authSource" in URI
2015-04-25 17:08:14 +03:00
RussellLuo
27111e7b29
Update changelog for added authSource support
2015-04-25 20:57:26 +08:00
RussellLuo
b847bc0aba
Make test_connect_uri_with_authsource to focus on the key point
2015-04-25 10:22:24 +08:00
RussellLuo
6eb0bc50e2
Add a test for "authSource" feature
2015-04-25 08:01:24 +08:00
Matthew Ellison
7530f03bf6
Removed Django Support from MongoEngine
...
Django support has now been split out of MongoEngine and will be
revisted as a new but separate module.
Closes #958
2015-04-24 13:50:26 -04:00
RussellLuo
24a9633edc
Override authentication_source by "authSource" in URI
2015-04-20 16:05:34 +08:00
Omer Katz
7e1a5ce445
Merge pull request #911 from jimmyshen/complexdatetime-microsecond-bug
...
Fixed microsecond-level ordering/filtering bug with ComplexDateTimeField
2015-04-19 12:40:01 +03:00
Jimmy Shen
2ffdbc7fc0
fixed microsecond-level ordering/filtering bug with ComplexDateTimeField as well as unused separator option
2015-04-19 03:26:14 -04:00
Axel Haustant
52c7b68cc3
Restore Py26 compatibility on assertRaises
2015-04-13 22:28:58 +02:00
Axel Haustant
ddbcc8e84b
Ensure meta.strict does not bypass constructor check
2015-04-13 18:48:42 +02:00
Axel Haustant
2bfb195ad6
Document FieldDoesNotExist and meta.strict
2015-04-13 18:07:48 +02:00
Axel Haustant
cd2d9517a0
Added 'strict' meta parameter
2015-04-13 17:49:08 +02:00
Omer Katz
19dc312128
Merge pull request #927 from Catstyle/feature/mark_as_changed_issue
...
mark_as_changed issue
2015-04-10 12:06:00 +03:00
Catstyle
175659628d
fix mark_as_changed: handle higher/lower level changed fields correctly to avoid conflict update error
2015-04-10 11:31:31 +08:00
Omer Katz
8fea2b09be
Merge pull request #925 from elephanter/fix__get_changed_fields
...
_get_changed_fields fix for embedded documents with id field.
2015-04-09 21:13:47 +03:00
Eremeev Danil
f77f45b70c
_get_changed_fields fix for embedded documents with id field.
...
removed commented out piece of code
added author and record to changelog
2015-04-09 12:36:48 +05:00
Omer Katz
103a287f11
Merge pull request #941 from MongoEngine/yograterol-patch-1
...
Remove support to PIL.
2015-04-09 10:19:48 +03:00
Omer Katz
d600ade40c
Merge pull request #947 from YoApp/optimization_issue888
...
Major dereferencing optimizations and fix for de-pickling outdated documents [migrated 921]
2015-04-09 10:06:12 +03:00
Michael Chase
a6a7cba121
Current class fields when unpickling. Fixes #888
...
Optimize dereferencing map by using sets.
2015-04-08 19:40:43 -07:00
Yohan Graterol
7fff635a3f
Remove support to PIL.
2015-04-08 11:29:55 -05:00
mrigal
7a749b88c7
added new test like defined in issue #712 and changed ObjectIdField to_python() method to use a try except similar to other Field classes
2015-04-08 15:38:49 +02:00
Ross Lawley
1ce6a7f4be
Update upgrade.rst
...
Add note to the upgrade guide about 0.8.7 bad package issue. #919 #929
2015-04-08 10:49:23 +01:00
David Bordeynik
a092910fdd
Merge pull request #920 from DavidBord/fix-914
...
ListField of embedded docs doesn't set the _instance attribute when iterating over it
2015-04-02 15:31:08 +03:00
David Bordeynik
bb77838b3e
fix-#914: ListField of embedded docs doesn't set the _instance attribute when iterating over it
2015-04-02 08:59:24 +03:00
David Bordeynik
1001f1bd36
Merge pull request #917 from DavidBord/fix-595
...
Fix #595 : Support += and *= for ListField
2015-04-02 01:08:30 +03:00
David Bordeynik
de0e5583a5
Fix #595 : Support += and *= for ListField
2015-03-29 09:28:26 +03:00
Omer Katz
cbd2a44350
Changed an invalid classifier to a valid one.
2015-03-28 11:34:22 +03:00
Ross Lawley
c888e461ba
Updated travis.yml to build release tags
2015-03-24 17:09:26 +00:00
David Bordeynik
d135522087
Adding #714 to changelog and AUTHORS
2015-03-23 15:46:12 +02:00
J. Fernando Sánchez and David Bordeynik
ce2b148dd2
Fixes #714
2015-03-23 12:21:21 +02:00
J. Fernando Sánchez and David Bordeynik
2d075c4dd6
Added test for new_file after saved as none. #714
2015-03-23 12:21:21 +02:00
Omer Katz
bcd1841f71
Enabled to release mongoengine to PyPi when tagging.
2015-03-23 11:52:24 +02:00
Omer Katz
029cf4ad1f
Merge pull request #908 from rozza/travis
...
Updated travis build
2015-03-18 18:52:38 +02:00
Omer Katz
ed7fc86d69
Merge pull request #901 from elasticsales/fix-test-with-profiling
...
Fix the unit tests for mongodb w/ profiling enabled
2015-03-18 16:38:31 +02:00
Ross Lawley
82a9e43b6f
Updated travis build
...
Fixed pymongo versions to 2.7.2 and 2.8
The dev build for pymongo is the master branch which points to the new 3.0 driver.
Support for 3.0 will need to be added separately in the future as its a major version change and
will contain some backwards breaking changes
2015-03-18 13:55:16 +00:00
Stefan Wojcik
9ae2c731ed
dont drop any system collections
2015-03-03 14:30:09 -08:00
Omer Katz
7d1ba466b4
Merge pull request #893 from MongoEngine/topic/pop-default-argument
...
Use dict.pop() default argument instead of checking if the key exists ourselves
2015-03-01 17:34:10 +02:00
Omer Katz
4f1d8678ea
Merge pull request #896 from MongoEngine/topic/remove-mutable-arguments
...
Use None instead of mutable arguments
2015-03-01 15:04:27 +02:00
Omer Katz
4bd72ebc63
Use None instead of mutable arguments.
2015-02-27 11:32:06 +02:00
Omer Katz
e5986e0ae2
Use dict.pop() default argument instead of checking if the key exists ourselves.
2015-02-27 11:18:09 +02:00
David Bordeynik
fae39e4bc9
Merge pull request #886 from rutsky/patch-1
...
fix typo: "a the structure" -> "the structure"
2015-02-26 11:38:41 +02:00
David Bordeynik
dbe8357dd5
Merge pull request #883 from jerrysxu/patch-1
...
Update fields.py
2015-02-26 11:38:33 +02:00
David Bordeynik
3234f0bdd7
Merge pull request #887 from rutsky/patch-2
...
fix reference format: "attr:`auto_create_index`"
2015-02-20 22:18:39 +02:00
David Bordeynik
47a4d58009
Merge pull request #826 from seglberg/mmelliso/fix#503
...
EmbeddedDocumentListField (Resolves #503 )
2015-02-20 21:53:18 +02:00
Vladimir Rutsky
4ae60da58d
fix reference format: "attr:auto_create_index"
2015-02-20 19:59:36 +03:00
Vladimir Rutsky
47f995bda3
fix typo: "a the structure" -> "the structure"
2015-02-20 19:41:20 +03:00
Matthew Ellison
42721628eb
Added EmbeddedDocumentListField Implementation
...
- Added new field type: EmbeddedDocumentListField.
- Provides additional query ability for lists of embedded documents.
- Closes MongoEngine/mongoengine#503 .
2015-02-20 11:18:40 -05:00
David Bordeynik
f42ab957d4
Merge pull request #885 from DavidBord/fix-864
...
Fix #864 : ComplexDateTimeField should fall back to None when null=True
2015-02-19 11:46:03 +02:00
Jimmy Shen and David Bordeynik
ce9d0d7e82
Fix #864 : ComplexDateTimeField should fall back to None when null=True
2015-02-19 09:47:38 +02:00
David Bordeynik
baf79dda21
Merge pull request #881 from DavidBord/fix-863
...
Fix #863 : Request Support for $min, $max Field update operators
2015-02-18 11:13:25 +02:00
Jerry Xu
b71a9bc097
Update fields.py
...
Type name should be "MultiPolygon".
2015-02-17 13:22:02 -08:00
David Bordeynik
129632cd6b
Fix #863 : Request Support for $min, $max Field update operators
2015-02-17 21:48:25 +02:00
David Bordeynik
aca8899c4d
Merge pull request #879 from DavidBord/fix-866
...
Fix #866 : does not follow
2015-02-16 15:49:06 +02:00
David Bordeynik
5c3d91e65e
Fix #866 : does not follow
2015-02-16 12:25:37 +02:00
David Bordeynik
0205d827f1
Merge pull request #876 from DavidBord/fix-766
...
Fix #766 : Add support for operator
2015-02-15 22:05:24 +02:00
David Bordeynik
225c31d583
Fix #766 : Add support for operator
2015-02-15 15:05:07 +02:00
David Bordeynik
b18d87ddba
Merge pull request #878 from DavidBord/fix-877
...
Fix #877 : Fix tests for pymongo 2.8+
2015-02-15 15:00:35 +02:00
David Bordeynik
25298c72bb
Fix #877 : Fix tests for pymongo 2.8+
2015-02-15 10:02:22 +02:00
David Bordeynik
3df3d27533
Merge pull request #873 from DavidBord/fix-872
...
Fix #872 : No module named 'django.utils.importlib' (Django dev)
2015-02-15 09:31:38 +02:00
David Bordeynik
cbb0b57018
Fix #872 : No module named 'django.utils.importlib' (Django dev)
2015-02-15 00:10:00 +02:00
David Bordeynik
65f205bca8
Merge pull request #848 from seglberg/choice-subclasses
...
Field Choices Now Accept Subclasses of Documents
2015-02-06 09:32:47 +02:00
Yohan Graterol
1cc7f80109
Merge pull request #845 from aeroeng/andQ
...
mongo $and list should not contain list elements in order to avoid this ...
2015-01-22 20:13:53 -05:00
Matthew Ellison
213a0a18a5
Updated Unit Tests for Field Choices of Documents
...
- Added Unit Test with Invalid EmbeddedDocument Choice.
- Updated Broken Link in Author's File
2015-01-12 10:11:42 -05:00
Matthew Ellison
1a24d599b3
Field Choices Now Accept Subclasses of Documents
...
- Fields containing 'choices' of which a choice is an
EmbeddedDocument or Document will now accept subclasses of that
choice.
2015-01-11 20:54:59 -05:00
aeroeng and stefan rusu
d80be60e2b
mongo $and list should not contain list elements in order to avoid this error:
...
$and/$or elements must be objects
2015-01-06 14:49:29 -05:00
Yohan Graterol
0ffe79d76c
Merge pull request #823 from mmelliso/mmelliso/fix#812
...
Ensure Indexes before Each Save (Resolves #812 )
2014-12-05 11:01:02 -05:00
Matthew Ellison and Matthew Ellison
db36d0a375
Ensure Indexes before Each Save
...
- Rely on caching within the PyMongo driver to provide lightweight calls
while indices are cached.
- Closes MongoEngine/mongoengine#812 .
2014-12-04 08:45:15 -05:00
Omer Katz
ff659a0be3
Merge pull request #815 from MRigal/master
...
fixed bug for queryset.distinct to work also on embedded documents, not ...
2014-12-04 14:21:04 +02:00
Wilson Júnior
8485b12102
Merge pull request #821 from 3lnc/Document.switch_docstring_fix
...
Fixes #811 . Fixes reflinks
2014-12-04 09:28:11 -02:00
Wilson Júnior
d889cc3c5a
Merge pull request #825 from idlead/fix/reverse_delete_rules_on_abstract_documents
...
Fix crash when applying deletion rules
2014-12-04 09:23:59 -02:00
Antoine Français
7bb65fca4e
Fix crash when applying deletion rules
...
When deleting a document references by other, if that refence is
defined on an abstract document, the operation fails, because it tries
to apply deletion on the abstract class which doesn't have a QuerySet.
Fix is simply to ignore document classes which are defined abstract when
applying rules on all classes referencing the document.
2014-12-04 11:34:23 +01:00
mrigal
8aaa5951ca
fixed order of list for the test to pass
2014-12-03 13:13:07 +01:00
Matthieu Rigal
d58f3b7520
Merge pull request #1 from thedrow/patch-1
...
Added a test that verifies distinct operations on nested embedded docume...
2014-12-03 13:10:27 +01:00
Omer Katz
e5a636a159
Added a test that verifies distinct operations on nested embedded documents.
2014-12-03 11:09:05 +02:00
Slam and Wilson Júnior
51f314e907
Doc fixes, thanks @3Inc
...
Author: Slam <3lnc.slam@gmail.com >
Date: Fri Nov 28 13:10:38 2014 +0200
2014-12-02 00:37:06 -02:00
mrigal
531fa30b69
added test for capacity to get distinct on subdocument of a list
2014-12-01 18:20:29 +01:00
Wilson Júnior
2b3bb81fae
Refactoring: Simple is better than complex
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com >
2014-11-29 23:48:58 -02:00
Rik and Wilson Júnior
80f80cd31f
fixed more tests that were using undefined model fields
2014-11-29 23:20:31 -02:00
Rik and Wilson Júnior
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 and Wilson Júnior
191a4e569e
added ints in string.format() for 2.6 compability
2014-11-29 23:20:30 -02:00
Rik and Wilson Júnior
1cac35be03
using python 2.6 compatible way of assertRaises
2014-11-29 23:20:30 -02:00
Rik and Wilson Júnior
6d48100f44
add test if FieldDoesNotExist is raised
...
When trying to set an undefined field.
2014-11-29 23:20:30 -02:00
Rik and Wilson Júnior
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 and Wilson Júnior
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 and Wilson Júnior
67bf6afc89
fixed tests that were using undefined model fields
2014-11-29 23:20:30 -02:00
Rik and Wilson Júnior
06064decd2
check for dynamic document, exclude id pk and _cls
2014-11-29 23:20:30 -02:00
Rik and Wilson Júnior
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
Slam
2954017836
Fixes #811 . Fixes reflinks
2014-11-30 00:23:40 +02:00
mrigal
a03262fc01
implemented ability to return instances and not simple dicts for distinct on subdocuments
2014-11-28 16:23:23 +01:00
mrigal
d65ce6fc2c
fixed bug for queryset.distinct to work also on embedded documents, not just on lists of embedded documents
2014-11-28 13:54:33 +01: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 and 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
DavidBord
201b12a886
Merge pull request #774 from DavidBord/fix-744
...
fix-#744: Querying by a field defined in a subclass raises InvalidQueryE...
2014-11-06 08:10:31 +02:00
DavidBord
c5f23ad93d
fix-#744: Querying by a field defined in a subclass raises InvalidQueryError
2014-11-06 00:15:23 +02:00
Yohan Graterol
28d62009a7
Update changelog.rst
2014-11-05 14:56:13 -05:00
Yohan Graterol
1a5a436f82
Merge pull request #775 from claymation/in_bulk_honors_no_dereference
...
Make `in_bulk()` respect `no_dereference()`
2014-11-05 14:55:43 -05:00
Yohan Graterol
1275ac0569
Merge pull request #773 from KonishchevDmitry/pr-document-modify
...
Add Document.modify() method
2014-11-02 17:13:33 -05:00
Dmitry Konishchev
5112fb777e
Mention Document.modify() in the documentation
2014-11-02 17:56:25 +03:00
Dmitry Konishchev
f571a944c9
Add #773 to changelog
2014-11-02 17:52:44 +03:00
Dmitry Konishchev
bc9aff8c60
Merge remote-tracking branch 'upstream/master' into pr-document-modify
2014-11-02 17:24:51 +03:00
Yohan Graterol
c4c7ab7888
Merge pull request #770 from yjaaidi/patch-1
...
Version bump 0.8.7 => 0.9.0
2014-11-01 14:37:51 -05:00
Yohan Graterol
d9819a990c
Merge pull request #772 from shuuji3/patch-1
...
Marked up the last line as preformatted text.
2014-11-01 14:37:44 -05:00
Yohan Graterol
aea400e26a
Merge pull request #791 from czarneckid/fix-reverse-delete-rule-documentation
...
Fix the documentation for reverse_delete_rule.
2014-11-01 14:32:48 -05:00
David Czarnecki
eb4e7735c1
Adding myself to AUTHORS and CHANGELOG
2014-11-01 13:15:02 -04:00
David Czarnecki
4b498ae8cd
Fix the documentation for reverse_delete_rule.
2014-10-31 11:40:20 -04:00
DavidBord
158e2a4ca9
Merge pull request #779 from DavidBord/fix-778
...
fix-#778: Add Support For MongoDB 2.6.X's maxTimeMS
2014-10-29 17:54:40 +02:00
DavidBord
b011d48d82
fix-#778: Add Support For MongoDB 2.6.X's maxTimeMS
2014-10-29 15:40:29 +02:00
DavidBord
8ac3e725f8
Merge pull request #790 from DavidBord/fix-789
...
fix-#789: abstract shouldn't be inherited in EmbeddedDocument
2014-10-29 13:39:56 +02:00
DavidBord
9a4aef0358
fix-#789: abstract shouldn't be inherited in EmbeddedDocument
2014-10-29 13:36:42 +02:00
Clay McClure
7d3146234a
Make in_bulk() respect no_dereference()
2014-10-01 15:59:13 -04:00
Dmitry Konishchev
5d2ca6493d
Drop unnecessary id=ObjectId() in document creation
2014-10-01 12:38:41 +04:00
Dmitry Konishchev
4752f9aa37
Add Document.modify() method
2014-09-30 15:30:01 +04:00
Shuuji TAKAHASHI
025d3a03d6
Marked up the last line as preformatted text.
2014-09-30 02:31:48 +09:00
yjaaidi
aec06183e7
Version bump 0.8.7 => 0.9.0
2014-09-28 10:09:36 +02:00
Yohan Graterol
aa28abd517
Merge pull request #750 from foxx/patch-1
...
MongoTestCase relies on "nose"
2014-09-04 10:07:50 -05:00
Vjacheslav Murashkin
7430b31697
handle None from model __str__; Fixes #753
2014-09-04 16:54:23 +04:00
Yohan Graterol
759f72169a
Merge pull request #751 from noirbizarre/patch-1
...
noirbizarre to AUTHORS
2014-09-02 21:48:16 -05:00
Axel Haustant
1f7135be61
Added myself to AUTHORS
2014-09-03 03:15:26 +02:00
Yohan Graterol
6942f9c1cf
Merge pull request #748 from bocribbz/fix-multiple-connections
...
Fix multiple connections aliases being rewritten
2014-09-01 20:30:18 -05:00
Bob Cribbs
d9da75d1c0
Fix multiple connections aliases being rewritten
2014-09-01 23:26:01 +03:00
Cal Leeming
7ab7372be4
MongoTestCase relies on "nose"
2014-09-01 20:40:01 +01:00
Yohan Graterol
3503c98857
Merge pull request #749 from noirbizarre/multigeo
...
Multi geometry fields support
2014-09-01 11:21:08 -05:00
Axel Haustant
708c3f1e2a
Added new geospatial fields to th documentation
2014-08-28 19:42:09 +02:00
Axel Haustant
6f645e8619
Added MultiPoint, MultiLine and MultiPolygon fields
2014-08-28 19:36:29 +02:00
Yohan Graterol
bce7ca7ac4
Fix merge of PR #747
2014-08-27 11:14:43 -05:00
Yohan Graterol
350465c25d
Change with PR #719 and close mongoengine/Issue #397
2014-08-26 10:50:07 -05:00
Yohan Graterol
5b9c70ae22
Merge pull request #719 from DavidBord/fix-397
...
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-26 10:48:10 -05:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +03:00
DavidBord
c1b202c119
fix-#746: Stop ensure_indexes running on a secondaries unless connection is through mongos
2014-08-24 10:48:54 +03:00
Yohan Graterol
41cfe5d2ca
Update changelog.rst
2014-08-22 08:24:41 -05:00
Yohan Graterol
05339e184f
Merge pull request #737 from wcdolphin/master
...
Make 'db' argument to connection optional
2014-08-22 08:24:03 -05:00
wcdolphin
447127d956
Makes 'db' argument to connection optional.
2014-08-21 16:08:31 -07:00
Yohan Graterol
394334fbea
Merge branch 'jshirley-master'
2014-08-20 11:06:09 -05:00
Yohan Graterol
9f8cd33d43
Fix conflict for merge PR #726
2014-08-20 11:05:53 -05:00
Yohan Graterol
f066e28c35
Update changelog.rst
2014-08-19 23:14:00 -05:00
Yohan Graterol
b349a449bb
Merge pull request #742 from bocribbz/dictfield-atomic-update
...
Allow atomic update for the entire `DictField`
2014-08-19 23:13:37 -05:00
Jay Shirley
1c5898d396
Adding changelog entry.
2014-08-19 15:54:29 -07:00
Jay Shirley
6802967863
Merge remote-tracking branch 'upstream/master'
2014-08-19 15:52:58 -07:00
Bob Cribbs
0462f18680
Allow atomic update for the entire DictField
2014-08-19 23:38:36 +03:00
Yohan Graterol
af6699098f
Update .travis.yml for allow failures in pypy3
2014-08-19 10:43:22 -05:00
Yohan Graterol
6b7e7dc124
Update for add the change that closes issue #733
2014-08-17 22:43:36 -05:00
Yohan Graterol
6bae4c6a66
Merge pull request #738 from DavidBord/fix-733
...
fix-#733: index_cls is ignored when deciding to set _cls as index prefix
2014-08-17 22:41:41 -05:00
DavidBord
46da918dbe
fix-#733: index_cls is ignored when deciding to set _cls as index prefix
2014-08-17 11:19:18 +03:00
Ross Lawley
bb7e5f17b5
Update .travis.yml
...
Added coveralls coverage...
2014-08-12 14:52:39 +01:00
Yohan Graterol
b9d03114c2
Merge pull request #728 from MongoEngine/topic/landscape-io
...
Added landscape.io badge
2014-08-11 08:31:11 -05:00
Omer Katz
436b1ce176
Added PyMongo 2.7.2 to the build matrix.
2014-08-10 18:44:30 +03:00
Omer Katz
50fb5d83f1
Added landscape.io badge.
2014-08-10 18:26:18 +03:00
Wilson Júnior
fda672f806
Merge pull request #727 from DavidBord/fix-725
...
fix-#725: queryset delete() should return the number of deleted objects
2014-08-10 11:43:59 -03:00
Omer Katz
2bf783b04d
Added PyPy3 to the build matrix.
2014-08-10 17:01:18 +03:00
DavidBord
2f72b23a0d
fix-#725: queryset delete() should return the number of deleted objects
2014-08-10 14:58:39 +03:00
Jay Shirley
85336f9777
Relax the RegEx restrictions to allow the new ICAAN TLDs.
2014-08-08 09:11:05 -07:00
Yohan Graterol
174d964553
Update changelog.rst
2014-08-06 01:54:42 -05:00
Yohan Graterol
cf8677248e
Merge pull request #723 from DavidBord/fix-620
...
Fix 620
2014-08-06 01:53:28 -05:00
DavidBord
1e6a3163af
fix-#620: saving document doesn't create new fields in existing collection
2014-08-05 17:29:14 +03:00
DavidBord
e008919978
fix-#399: Not overriding default values when loading a subset of fields
2014-08-05 14:34:54 +03:00
Wilson Júnior
4814066c67
Merge pull request #709 from wpjunior/cached-reference-field
...
CachedReferenceField implementation
2014-08-03 21:38:06 -03:00
Wilson Junior
f17f8b48c2
small fixes for python2.6
2014-08-03 18:59:50 -04:00
Yohan Graterol
ab0aec0ac5
Merge pull request #720 from pashadia/master
...
Fixed typo.
2014-08-03 14:04:15 -05:00
pashadia
b49a641ba5
Fixed typo.
2014-08-03 20:44:46 +03:00
Yohan Graterol
2f50051426
Merge pull request #718 from mbalasso/patch-1
...
Update README.rst
2014-08-01 10:46:50 -05:00
Matteo Balasso
43cc32db40
Update README.rst
2014-08-01 16:35:53 +02:00
Wilson Júnior
b4d6f6b947
added documentation about CachedReferenceField
2014-07-30 09:32:33 -03:00
Omer Katz
71ff533623
Updated Django development version in the build matrix.
2014-07-30 02:02:21 +03:00
Wilson Júnior
e33a5bbef5
fixes for python2.6
2014-07-26 07:24:04 -03:00
Wilson Júnior
6c0112c2be
refs #709 , added support to disable auto_sync
2014-07-25 18:12:26 -03:00
Wilson Júnior
15bbf26b93
refs #709 , fix typos
2014-07-25 08:48:24 -03:00
Wilson Júnior
87c97efce0
refs #709 , added CachedReferenceField.sync_all to sync all documents on demand
2014-07-25 08:44:59 -03:00
Wilson Júnior
6c4aee1479
added CachedReferenceField restriction to use in EmbeddedDocument
2014-07-17 13:42:34 -03:00
Wilson Júnior
73549a9044
fixes for rebase branch
2014-07-17 09:41:06 -03:00
Wilson Júnior
30fdd3e184
Added initial CachedReferenceField
2014-07-16 10:32:43 -03:00
Wilson Júnior
c97eb5d63f
Added retry in apt-get operations for travis
2014-07-14 16:05:49 -03:00
Wilson Júnior
5729c7d5e7
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
2014-07-14 16:00:26 -03:00
Wilson Júnior
d77b13efcb
Merge pull request #703 from wpjunior/aggregate-framework
...
Simple aggregation framework wrapper
2014-07-14 14:29:59 -03:00
Wilson Júnior
c43faca7b9
refs #703 , added changelog
2014-07-13 09:55:46 -03:00
Wilson Júnior
892ddd5724
added a wrapper to aggregate in Queryset.aggregate
2014-07-12 23:18:08 -03:00
Wilson Júnior
a9de779f33
Merge pull request #701 from yograterol/master
...
Remove allow_failures from .travis.yml file
2014-07-08 14:21:39 -03:00
Yohan Graterol
1c2f016ba0
Remove allow_failures from .travis.yml file
2014-07-08 10:25:12 -05:00
Wilson Júnior
7b4d9140af
merge #700
2014-07-08 09:19:15 -03:00
Wilson Júnior
c1fc87ff4e
added entry in changelog
2014-07-08 09:16:01 -03:00
Wilson Júnior
cd5ea5d4e0
testing a travis with mongodb 2.6
2014-07-08 08:49:03 -03:00
Wilson Júnior
30c01089f5
added ordering support for text queries
2014-07-08 08:38:41 -03:00
Wilson Júnior
89825a2b21
added skip to mongodb older
2014-07-07 23:45:44 -03:00
Wilson Júnior
a743b75bb4
fixed a order in command
2014-07-07 21:02:13 -03:00
Wilson Júnior
f7ebf8dedd
Added support for text search and text_score.
2014-07-07 20:24:37 -03:00
Yohan Graterol
f6220cab3b
Merge pull request #697 from nleite/master
...
to_json not resolving db_fields #654
2014-07-07 17:39:34 -05:00
Norberto
0c5e1c4138
adding myself to authors
2014-07-07 22:07:01 +02:00
Norberto
03fe431f1a
merge with origin done
2014-07-07 21:59:42 +02:00
Norberto
a8e4554fec
Update change log on #697 merge
2014-07-07 19:27:39 +02:00
Norberto
e81b09b9aa
adding capability to extract json (to_json) using the field names and instead of the defined db_names, if those are set
2014-07-06 20:49:19 +02:00
Yohan Graterol
c6e846e0ae
Merge pull request #696 from lexqt/fix_django_17_compat
...
Fix tests for django 1.7
2014-07-06 12:43:12 -05:00
Aleksey Porfirov
03dcfb5c4b
Update changelog
2014-07-06 12:27:34 +04:00
Aleksey Porfirov
3e54da03e2
Fix MongoTestCase and add test for it
2014-07-05 21:35:31 +04:00
Aleksey Porfirov
c4b3196917
Fix MongoTestCase and add test for it
2014-07-05 21:13:25 +04:00
Aleksey Porfirov
0d81e7933e
Prevent accessing not yet configured settings in django.MongoTestCase
2014-07-05 00:06:10 +04:00
Aleksey Porfirov
b2a2735034
Update AUTHORS
2014-07-04 22:32:07 +04:00
Aleksey Porfirov
f865c5de90
Fix tests for Django 1.7
2014-07-04 22:30:29 +04:00
Yohan Graterol
4159369e8b
Merge pull request #690 from claymation/select-related
...
Follow ReferenceFields in EmbeddedDocuments with select_related
2014-07-03 15:28:09 -05:00
Clay McClure
170693cf0b
Follow ReferenceFields in EmbeddedDocuments with select_related
...
For the following structure:
class Playlist(Document):
items = ListField(EmbeddedDocumentField("PlaylistItem"))
class PlaylistItem(EmbeddedDocument):
song = ReferenceField("Song")
class Song(Document):
title = StringField()
this patch prevents the N+1 queries otherwise required to fetch all
the `Song` instances referenced by all the `PlaylistItem`s.
2014-07-03 13:14:45 -04:00
Omer Katz
4e7b5d4af8
Added @rochacbrun to the AUTHORS file. #692
2014-07-03 17:35:55 +03:00
Omer Katz
67bf789fcf
Merge pull request #692 from rochacbruno/master
...
Updates with no operator should default to $set Fix #667
2014-07-03 09:02:12 +03:00
Omer Katz
f5cf616c2f
Merge pull request #635 from SergeChmelev/master
...
Fix for post_init signal to receive correct state of _created flag.
2014-07-03 02:38:52 +03:00
Bruno Rocha
7975f19817
Update querying.rst
2014-07-02 18:56:42 -03:00
Serge Chmelev
017602056d
Add testcase
2014-07-03 01:48:19 +04:00
Serge Chmelev
c63f43854b
Fix setting of _created flag in base.Document constructor
2014-07-03 01:48:19 +04:00
Serge Chmelev
5cc71ec2ad
Fix for post_init signal to receive correct state of _created flag.
2014-07-03 01:48:19 +04:00
Omer Katz
80e81f8475
Python 2.6 requires positioning by number of fragments in format.
...
This commit will restore Python 2.6 compatability.
2014-07-02 23:22:06 +03:00
Omer Katz
3685c8e015
Allowed failures for Django development version.
2014-07-02 22:50:58 +03:00
Bruno Rocha
99e943c365
Updates with no operator should default to $set Fix #667
2014-07-02 14:39:29 -03:00
Yohan Graterol
21818e71f5
Revert change in .travis.yml: Delete apt cache
2014-06-30 08:48:04 -05:00
Ross Lawley
bcc6d25e21
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-06-30 10:30:12 +01:00
Ross Lawley
7b885ee0d3
Fix StrictDict repr
2014-06-30 10:29:28 +01:00
Omer Katz
c10e808a4f
Fixed requirements file to fit the new PyMongo>=2.7.1 requirement.
2014-06-30 11:30:51 +03:00
Omer Katz
54e9be0ed8
Merge pull request #689 from brianhelba/pymongo_2.5
...
Make requirement for PyMongo>=2.5 more consistent
2014-06-30 11:30:15 +03:00
Yohan Graterol
938cdf316a
Added cache for apt in Travis
2014-06-30 00:14:47 -05:00
Yohan Graterol
27c33911e6
Update .travis.yml
2014-06-30 00:09:28 -05:00
Yohan Graterol
e88f8759e7
Replace before_script for before_install
2014-06-29 23:33:30 -05:00
Yohan Graterol
f2992e3165
Travis problem with before_script
2014-06-29 23:31:08 -05:00
Yohan Graterol
c71fd1ee3b
Before_script fixed.
2014-06-29 23:29:10 -05:00
Yohan Graterol
fb45b19fdc
Enabling textSearch for build in Travis
2014-06-29 23:26:02 -05:00
Brian Helba
c4ea8d4942
Make requirement for PyMongo>=2.5 more consistent
...
Commit 7aa1f47378 requires PyMongo >= v2.5.
This updates the requirements file to make this requirement explicit to
package managers.
Commit 29309dac9a removed some legacy
compatibility code that would run only with versions of PyMongo < 2.1. The
options 'is_slave' and 'slaves' for register_connection were only used in
this compatibility code, so they are removed too.
2014-06-30 00:05:34 -04:00
Yohan Graterol
646aa131ef
Corrected Travis config syntax
2014-06-29 22:58:10 -05:00
Yohan Graterol
0adb40bf92
Merge pull request #684 from brianhelba/doc-spelling
...
Fix some minor spelling and grammar in documentation
2014-06-29 22:41:23 -05:00
Brian Helba
17d6014bf1
Fix some minor spelling and grammar in documentation
2014-06-29 23:07:28 -04:00
Yohan Graterol
ff57cd4eaf
Merge pull request #680 from claymation/text-index-specs
...
Include preliminary support for text indexes
2014-06-27 22:18:17 -05:00
Clay McClure
74bd7c3744
Include preliminary support for text indexes
...
To index a text field, prefix the field name with `$`, as in `$title`.
2014-06-27 14:48:32 -04:00
Omer Katz
cfbb283f85
Added Django 1.7RC1 to the build process and excluded it from running on Python 2.6.
2014-06-27 16:48:38 +03:00
Omer Katz
74a3c4451b
using() was added in 0.9. Not 0.8.
2014-06-27 16:35:26 +03:00
Ross Lawley
be3643c962
Added elemMatch operator as well - match is too obscure #653
2014-06-27 13:39:47 +01:00
Ross Lawley
f4aa546af8
Added support for progressive JPEG #486 #548
2014-06-27 12:54:32 +01:00
Ross Lawley
67b876a7f4
Merge pull request #548 from yograterol/feature-progressive-jpeg
...
Feature for progressive JPEG. Issue #486
2014-06-27 12:53:51 +01:00
Ross Lawley
94e177c0ef
Allow strings to be used in index creation #677
2014-06-27 12:49:31 +01:00
Ross Lawley
1bd83cc9bc
Merge branch 'master' into pr/675
2014-06-27 12:48:28 +01:00
Ross Lawley
ecda3f4a7d
Fixed EmbeddedDoc weakref proxy issue #592
2014-06-27 12:42:45 +01:00
Ross Lawley
8f972a965d
Merge branch 'master' into pr/592
2014-06-27 12:36:39 +01:00
Ross Lawley
0f051fc57c
Changelog & Authors #583
2014-06-27 12:33:19 +01:00
Ross Lawley
c3f8925f46
Merge pull request #583 from Gerrrr/distinct_bug
...
Fixed bug in distinct method
2014-06-27 12:22:09 +01:00
Ross Lawley
5d0cab2052
Merge branch 'master' into pr/539
...
Conflicts:
mongoengine/base/datastructures.py
2014-06-27 12:20:44 +01:00
Ross Lawley
4d7492f682
Changelog & Author updates #425 #507
2014-06-27 12:10:17 +01:00
Ross Lawley
fc9d99080f
Merge branch 'master' into pr/507
...
Conflicts:
tests/document/dynamic.py
2014-06-27 12:06:18 +01:00
Ross Lawley
47ebac0276
Add authentication_source option to register_connection #178 #464 #573 #580 #590
2014-06-27 11:59:35 +01:00
Ross Lawley
cb3fca03e9
Merge branch 'master' into pr/590
...
Conflicts:
mongoengine/connection.py
2014-06-27 11:53:46 +01:00
Ross Lawley
abbbd83729
Merge pull request #433 from reachveera/master
...
Overridden the prepare_query_value method in SequenceField inorder to re...
2014-06-27 11:49:28 +01:00
Ross Lawley
1743ab7812
Changelog update #567
2014-06-27 11:38:06 +01:00
Ross Lawley
324e3972a6
Merge pull request #567 from tomprimozic/master
...
Implemented equality between Documents and DBRefs
2014-06-27 11:37:24 +01:00
Ross Lawley
1502dda2ab
Fixed ReferenceField inside nested ListFields dereferencing problem #368
2014-06-27 11:33:56 +01:00
Ross Lawley
f31b2c4a79
Merge branch 'master' into pr/368
2014-06-27 11:32:19 +01:00
Ross Lawley
89b9b60e0c
Geo SON tweaks
2014-06-27 11:27:10 +01:00
Ross Lawley
de9ba12779
Turn on tests
2014-06-27 11:16:23 +01:00
Ross Lawley
9cc4359c04
Added the ability to reload specific document fields #100
2014-06-27 11:10:14 +01:00
Ross Lawley
67eaf120b9
db_alias support and fixes for custom map/reduce output #586
2014-06-27 10:07:05 +01:00
Ross Lawley
b8353c4a33
Merge branch 'master' into pr/586
...
Conflicts:
mongoengine/queryset/base.py
tests/queryset/queryset.py
2014-06-27 10:06:30 +01:00
Ross Lawley
7013033ae4
Update changelog & AUTHORS #594 #589
2014-06-27 10:03:35 +01:00
Ross Lawley
cb8cd03852
Merge pull request #594 from idlead/feature/post_save_delta
...
post_save signal should have delta information about field changes #594 #589
2014-06-27 10:02:08 +01:00
Ross Lawley
f63fb62014
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-06-27 10:00:42 +01:00
Ross Lawley
2e4fb86b86
Don't query with $orderby for qs.get() #600
2014-06-27 10:00:16 +01:00
Stefan Wojcik and Ross Lawley
5e776a07dd
allow ordering to be cleared
2014-06-27 09:58:49 +01:00
Ross Lawley
81e637e50e
Merge pull request #598 from philfreo/patch-1
...
clarifying the 'push' atomic update docs
2014-06-27 09:38:01 +01:00
Ross Lawley
0971ad0a80
Update changelog & authors - #636
2014-06-27 09:31:01 +01:00
Ross Lawley
8267ded7ec
Merge branch 'master' into pr/636
2014-06-27 09:29:19 +01:00
Ross Lawley
7f36ea55f5
Fix bulk test where behaviour changes based on mongo version
2014-06-27 09:14:56 +01:00
Ross Lawley
72a051f2d3
Update AUTHORS & Changelog #557
2014-06-27 09:12:05 +01:00
Ross Lawley
51b197888c
Merge remote-tracking branch 'origin/master'
2014-06-27 09:10:40 +01:00
Ross Lawley
cd63865d31
Fix clear_changed_fields() clearing unsaved documents bug #602
2014-06-27 09:08:07 +01:00
Martyn Smith and Ross Lawley
5be5685a09
Test to illustrate failure in changed attribute tracking
2014-06-27 09:06:17 +01:00
Yohan Graterol
76b2f25d46
Merge pull request #557 from SpotOnInc/recursive_embedded_errors_fix
...
Fixes issue with recursive embedded document errors
2014-06-26 21:55:49 -05:00
Ross Lawley
58607d4a7f
Merge pull request #609 from nicolasdespres/fix-gridfs-guide
...
Save is called on the document not the file field.
2014-06-26 19:56:32 +01:00
Ross Lawley
c0a5b16a7f
Travis bump
2014-06-26 19:52:05 +01:00
Ross Lawley
3a0c69005b
Update AUTHORS and Changelog
...
Refs: #664 , #677 , #676 , #673 , #674 , #655 , #657 , #626 , #625 , #619 , #613 , #608 , #511 , #559
2014-06-26 19:41:40 +01:00
Ross Lawley
5c295fb9e3
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-06-26 19:25:35 +01:00
Ross Lawley
4ee212e7d5
Skip Test due to server bug in 2.6
2014-06-26 19:25:05 +01:00
Ross Lawley
70651ce994
Fix as_pymongo bug
2014-06-26 19:24:52 +01:00
Yohan Graterol
a778a91106
Merge pull request #584 from FrankSomething/consistent-inits
...
inherit parent Document type _auto_id_field value
2014-06-26 11:24:13 -05:00
Ross Lawley
cfc31eead3
Fixed $maxDistance location for geoJSON $near queries with MongoDB 2.6+
...
Closes #664
2014-06-26 17:13:35 +01:00
Ross Lawley
da0a1bbe9f
Fix test_using
2014-06-26 17:13:21 +01:00
Ross Lawley
bc66fb33e9
Merge branch 'master' into pr/625
2014-06-26 16:48:12 +01:00
Ross Lawley
b1b6493755
Merge branch 'pr/676'
2014-06-26 16:46:01 +01:00
Ross Lawley
1d189f239b
Merge branch 'pr/562'
2014-06-26 16:42:23 +01:00
Ross Lawley
5b90691bcc
Merge branch 'master' into pr/585
2014-06-26 16:41:27 +01:00
Ross Lawley
d1d5972277
Removed support for old versions
...
- Removing support for Django 1.4.x, pymongo 2.5.x, pymongo 2.6.x.
- Removing support for Python < 2.6.6
2014-06-26 16:34:02 +01:00
Ross Lawley
2c07d77368
Updated changelog
...
Enabled connection pooling
2014-06-26 16:24:37 +01:00
Ross Lawley
642cfbf59a
Merge branch 'master' into pr/672
...
Conflicts:
.travis.yml
2014-06-26 16:23:32 +01:00
Ross Lawley
bb1367cfb9
Merge branch 'master' into pr/674
2014-06-26 16:22:21 +01:00
Dmitry Konishchev and Ross Lawley
11724aa555
QuerySet.modify() method to provide find_and_modify() like behaviour
2014-06-26 16:18:42 +01:00
Ross Lawley
4d374712de
Merge branch '0.9'
...
Conflicts:
.travis.yml
2014-06-26 16:14:34 +01:00
Ross Lawley
eb9003187d
Updated changelog & authors #673
2014-06-26 16:13:01 +01:00
Ross Lawley
caba444962
Merge branch '0.9' into pr/673
...
Conflicts:
.travis.yml
2014-06-26 16:11:12 +01:00
Ross Lawley
5b6c8c191f
Updated .travis.yml
2014-06-26 16:06:30 +01:00
Ross Lawley
dd51589f67
Updates
2014-06-26 16:02:40 +01:00
Ross Lawley
b02a31d4b9
Updated .travis.yml
2014-06-26 14:44:44 +01:00
Omer Katz
0e7878b406
Only run 2to3 on Python 3.x. Makes sense no?
2014-06-26 12:41:26 +03:00
Omer Katz
cae91ce0c5
Convert codebase to Python 3 using 2to3 before running benchmarks.
2014-06-26 12:31:07 +03:00
Omer Katz
67a65a2aa9
Installing unittest2 on Python 2.6.
2014-06-26 11:17:57 +03:00
Yohan Graterol
364b0a7163
Merge pull request #591 from pavlov99/master
...
fix docstring for DictField
2014-06-25 22:52:07 -05:00
Yohan Graterol
d6419f2059
Merge pull request #613 from falcondai/master
...
minor change to geo-related docs
2014-06-25 10:44:36 -05:00
Yohan Graterol
6f7ad7ef91
Merge pull request #619 from polyrabbit/master
...
Fixed incorrectly split a query key, when it ends with "_"
2014-06-25 10:42:27 -05:00
Omer Katz
5ae588833b
Allowed to switch databases for a specific query.
2014-06-25 18:22:39 +03:00
Yohan Graterol
a70dbac0e6
Merge pull request #626 from KonishchevDmitry/pr-not-unique-error-on-update
...
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-06-25 10:18:09 -05:00
Yohan Graterol
4d34a02afe
Merge pull request #634 from jatin/patch-1
...
Updated Jatin's name and github name
2014-06-25 10:16:49 -05:00
Yohan Graterol
4db4f45897
Merge pull request #651 from elasticsales/server-13975-precaution
...
Don't use a system collection in the tests
2014-06-25 09:48:30 -05:00
Yohan Graterol
2d5280fc95
Merge pull request #655 from jonathansp/master
...
Avoid to open all documents from cursors in an if stmt
2014-06-25 09:45:51 -05:00
Omer Katz
b8d568761e
Getting rid of xrange since it's not in Python 3 and does not affect the benchmark.
2014-06-25 17:24:52 +03:00
Omer Katz
29309dac9a
Mongo clients with the same settings should be shared since they manage a connection pool.
...
Also, I removed old code that was supposed to support Pymongo<2.1 which we don't support anymore.
2014-06-25 16:53:24 +03:00
Omer Katz
7f7745071a
Found more print statements that were not turned into function calls.
2014-06-25 15:47:54 +03:00
Omer Katz
1914032e35
Missed some of the print statements in the benchmarks script.
2014-06-25 14:20:54 +03:00
Omer Katz
f44c8f1205
Skipping a test that does not work on PyPy due to a PyPy bug/feature.
2014-06-25 13:11:32 +03:00
Omer Katz
fe2ef4e61c
Made the benchmark script compatitable with Python 3 and ensured it runs on every build.
2014-06-25 11:39:08 +03:00
Omer Katz
fc3eda55c7
Added a note about optional dependencies to the README file.
2014-06-25 11:32:41 +03:00
Omer Katz
8adf1cdd02
Fast finish the build if there are failures since we have a very large build matrix and each build takes a very long time.
2014-06-25 11:18:35 +03:00
Omer Katz
adbbc656d4
Removing zlib hack since only PIL needs it. The build should pass without it.
2014-06-25 11:12:40 +03:00
Omer Katz
8e852bce02
Pillow provides a more descriptive error message, therefor the build failure.
2014-06-25 10:58:00 +03:00
Omer Katz and Omer Katz
bb461b009f
Travis build improvements.
...
The latest patch version of each Django minor version is used.
The build now installs existing pymongo versions.
The build now actually tests against the specified Django version.
Replaced PIL with Pillow.
Added PyPy and Python 3.4 to the build.
Rebase Log:
Installing Pillow instead of PIL for testing since it's recommended and it supports PyPy.
Excluding Django versions that do not work with Python 3.
Improved formatting of .travis.yml.
Specifying Pillow 2.0.0 and above since it's the first version that is supported in Python 3.
PIL should not be installed alongside Pillow.
Also, I installed some libraries that both PIL and Pillow depend on.
It seems I have to be explicit on all envvars in order to exclude Django 1.4 from the build matrix.
The build is now installing pymongo versions that actually exist.
openjpeg has a different name on Ubuntu 12.04.
Restoring libz hack.
Also installing all Pillow requirements just in case.
Fixed the build matrix.
Acting according to @BanzaiMan's advice in travis-ci/travis-ci/#1492.
2014-06-25 10:40:28 +03:00
Omer Katz
03559a3cc4
Added Python 3.4 to the build process.
2014-06-24 19:20:15 +03:00
Jonathan Prates
7bb2fe128a
Added PR #657
2014-06-12 11:08:41 -03:00
Jonathan Prates
2312e17a8e
Merge remote-tracking branch 'elasticsales/clear-default-ordering'
2014-06-12 10:28:36 -03:00
Sagiv Malihi and Sagiv Malihi
9835b382da
added __slots__ to BaseDocument and Document
...
changed the _data field to static key-value mapping instead of hash table
This implements #624
2014-06-10 16:11:27 +03:00
Stefan Wojcik
1eacc6fbff
clear ordering via empty order_by
2014-05-30 15:08:03 -07:00
Jonathan Prates
85187239b6
Fix tests msg
2014-05-29 15:21:24 -03:00
Jonathan Prates
819ff2a902
Renamed to has_data()
2014-05-29 14:36:30 -03:00
Jonathan Prates
c744104a18
Added test with meta
2014-05-29 10:53:20 -03:00
Jonathan Prates
c87801f0a9
Using first() from cloned queryset
2014-05-28 17:26:28 -03:00
Jonathan Prates
39735594bd
Removed blank line
2014-05-28 17:15:48 -03:00
Jonathan Prates
30964f65e4
Remove orderby in if stmt
2014-05-28 17:06:15 -03:00
Jonathan Prates
ee0c7fd8bf
Change for loop to self.first()
2014-05-28 13:21:00 -03:00
Jonathan Prates
dfdecef8e7
Fix py2 and py3
2014-05-28 09:40:22 -03:00
Jonathan Prates
edcdfeb057
Fix syntax error
2014-05-28 09:03:12 -03:00
Jonathan Prates
47f0de9836
Py3 fix
2014-05-28 08:36:57 -03:00
Jonathan Prates
9ba657797e
Authors updated according guideline
2014-05-28 08:33:22 -03:00
Clay McClure
07442a6f84
Allow index specs to be composed from raw strings
...
This allows an index spec to reference arbitrary keys of a DictField:
class MyDoc(Document):
frobs = DictField()
meta = {
"indexes": ["frobs.fmep", "frobs.gorp"],
}
2014-05-28 01:31:35 -04:00
Jonathan Prates
3faf3c84be
Avoid to open all documents from cursors in an if stmt
...
Using a cursos in an if statement:
cursor = Collection.objects
if cursor:
(...)
Will open all documents, because there are not an __nonzero__ method.
This change check only one document (if present) and returns True or False.
2014-05-27 16:33:38 -03:00
Stefan Wojcik
abcacc82f3
dont use a system collection
2014-05-21 22:21:46 -07:00
Ronald van Rij
9544b7d968
Fixed unit test which used assertIsNotNone
2014-05-09 14:33:18 +02:00
Ronald van Rij
babbc8bcd6
When using autogenerated document ids in a sharded collection, do set that id back into the Document
2014-05-06 09:34:16 +02:00
Jatin Chopra
12809ebc74
Updated Jatin's name and github name
2014-05-06 00:25:55 -07:00
Dmitry Konishchev
b45a601ad2
Test raising NotUniqueError by Document.update()
2014-04-15 19:32:42 +04:00
Serge Matveenko
f099dc6a37
Merge pull request #608 from cloudbuy/dateutil-bug-workaround
...
workaround a dateutil bug
2014-04-10 12:18:25 +04:00
Dmitry Konishchev
803caddbd4
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-04-09 14:25:53 +04:00
poly
4d7b988018
Fixed uncorrectly split a query key, when it ends with "_"
2014-04-01 19:52:21 +08:00
Falcon Dai
c1f88a4e14
minor change to geo-related docs
2014-03-17 22:29:53 -05:00
Nicolas Despres
5d9ec0b208
Save is called on the document not the file field.
2014-03-17 17:19:17 +01:00
Damien Churchill
1877cacf9c
fix modifying slices under python3
2014-03-12 19:49:43 +00:00
Damien Churchill
2f4978cfea
Merge branch 'dateutil-bug-workaround'
2014-03-12 17:27:04 +00:00
Damien Churchill
d27a1103fa
workaround a dateutil bug
...
In the latest released version of dateutil, there's a bug whereby a TypeError
can be raised whilst parsing a date. This is because it calls a method which
it expects to return 2 arguments, however it can return 1 depending upon the
input, which results in a TypeError: ArgType not iterable exception. Since
this is equivalent to a failed parse anyway, we can treat it the same as a
ValueError.
2014-03-12 17:19:49 +00:00
Damien Churchill
b85bb95082
Merge branch 'master' of github.com:cloudbuy/mongoengine
2014-03-12 15:11:53 +00:00
Damien Churchill
db7f93cff3
improved update queries for BaseDict & BaseList
...
Migrate changes to include updating single elements of ListFields as
well as MapFields by adding the same changes to BaseList. This is
done by ensuring all BaseDicts and BaseLists have the correct name
from the base of the nearest (Embedded)Document, then marking changes
with their key or index when they are changed.
Tests also all fixed up.
2014-03-12 15:07:40 +00:00
Damien Churchill
85e271098f
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
2014-03-12 12:44:04 +00:00
Damien Churchill
17001e2f74
Merge remote-tracking branch 'origin/master'
2014-03-11 13:00:08 +00:00
Phil Freo
c82f4f0d45
clarifying the 'push' atomic update docs
...
the first time I read this I was all like... "no duh it will remove either the first or the last, but which does it do???"
2014-03-07 13:37:15 -08:00
tprimozi
88247a3af9
Bugfix for weakref _instance bug.
2014-03-03 15:11:05 +00:00
tprimozi
158578a406
Added test that fails due to weakref _instance bug.
2014-03-03 15:10:35 +00:00
Kirill Pavlov
19314e7e06
fix docstring for DictField
2014-03-03 13:09:26 +08:00
Brian Helba
8bcbc6d545
Add authentication_source option to register_connection ( #573 ) ( #580 )
...
Since v2.5, PyMongo has supported a "source" option, to specify a
particular database to authenticate against. This adds support for that
option, in the form of a "authentication_source" option to
register_connection.
2014-03-02 18:35:49 -05:00
Vlad Zloteanu
ef55e6d476
fixes MongoEngine/mongoengine#589
2014-03-01 17:51:59 +01:00
Wilson Júnior
295ef3dc1d
db_alias support and fixes for custom map/reduce output
2014-02-25 15:36:30 -03:00
Frank Battaglia
9d125c9e79
inherit parent Document type _auto_id_field value
2014-02-24 11:10:02 -05:00
Frank Battaglia and Frank Battaglia
86363986fc
whitespace
2014-02-24 11:04:29 -05:00
Frank Battaglia and Frank Battaglia
0a2dbbc58b
add tests for mongo query operators
2014-02-24 11:03:50 -05:00
Frank Battaglia and Frank Battaglia
673a966541
add tests for save_condition kwarg in document.save()
2014-02-24 11:02:37 -05:00
Frank Battaglia and Frank Battaglia
db1e69813b
add atomic conditions to save
...
Conflicts:
mongoengine/document.py
2014-02-24 10:57:32 -05:00
Aleksandr Sorokoumov
e60d56f060
test implemented
2014-02-24 19:22:36 +04:00
Aleksandr Sorokoumov
328e062ae9
Distinct method bugfix
...
Creation of instances is executed now only for EmbeddedDocumentField
and GenericEmbeddedDocumentField in distinct method
2014-02-24 19:21:11 +04:00
tprimozi
0523c2ea4b
Fixed document equality: documents in different collections can have equal ids.
2014-02-13 18:12:33 +00:00
tprimozi
c5c7378c63
Implemented equality between Documents and DBRefs
2014-02-04 13:41:17 +00:00
Brian J. Dowling
9b2080d036
Added a test for allowing dynamic dictionary-style field access
...
Closes #559
2014-01-28 22:10:26 -05:00
Ross Lawley
d4b3649640
Added coveralls.io badge
...
https://coveralls.io/r/MongoEngine/mongoengine
2014-01-28 09:25:59 +00:00
Brian J. Dowling
b085993901
Allow dynamic dictionary-style field access
...
Allows the doc[key] syntax to work for dynamicembeddeddocument fields
Fixes #559
2014-01-27 23:05:29 +00:00
Andrei Zbikowski
0d4afad342
Fixes issue with recursive embedded document errors
2014-01-24 16:54:29 -06:00
Ross Lawley
0da694b845
0.8.7
2014-01-24 16:23:52 +00:00
Ross Lawley
6d5e7d9e81
Calling reload on deleted / nonexistant documents raises DoesNotExist ( #538 )
2014-01-24 14:10:55 +00:00
Ross Lawley
bc08bea284
Fix circular import issue with django auth ( #531 ) ( #545 )
2014-01-24 13:54:16 +00:00
Ross Lawley
0e5a0661e1
Fixed possible issue not catching duplicate key errors
2014-01-24 13:50:09 +00:00
Ross Lawley
a839bd428f
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-01-24 13:18:11 +00:00
Ross Lawley
0277062693
Stop ensure_indexes running on a secondaries ( #555 )
2014-01-24 13:17:52 +00:00
Ross Lawley
7affa5ab69
Merge pull request #554 from yprez/patch-1
...
geo_within docs - fix broken code samples
2014-01-24 05:05:34 -08:00
Ross Lawley
ed22af4e73
Merge pull request #553 from davidwilemski/patch-2
...
Fix typo in upgrade docs
2014-01-24 05:05:00 -08:00
Yuri Prezument
63ebb6998e
geo_within docs - fix broken code samples
...
No such thing as "geo_with"
2014-01-22 22:47:48 +02:00
David Wilemski
7914cd47ca
Fix typo in upgrade docs
...
Removed extra closing parenthesis
2014-01-17 20:36:02 -05:00
Ross Lawley
708dbac70e
Depending on pymongo it might raise a TypeError or ValueError
2014-01-14 10:09:11 +00:00
Ross Lawley
1b62dd5c40
Fix duplicate error check
2014-01-14 10:01:39 +00:00
Ross Lawley
4911545843
Merge branch 'master' of github.com:MongoEngine/mongoengine
2014-01-13 16:59:20 +00:00
Ross Lawley
c5cc4b7867
Updated docs
2014-01-13 16:57:49 +00:00
Damien Churchill
eacb614750
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
2014-01-10 11:03:48 +00:00
Yohan Graterol
341e1e7a6d
Feature for progressive JPEG. Issue #486
2014-01-08 14:48:34 -04:30
Ross Lawley
a02c820c2d
Merge pull request #534 from matthewowen/master
...
Reject email addresses where hostname ends with '.'
2013-12-18 01:18:37 -08:00
Damien Churchill
2f6890c78a
fix for nested MapFields
...
When using nested MapFields from a document loaded from the database, the
nested dictionaries aren't converted to BaseDict, so changes aren't
marked.
This also includes a change when marking a field as changed to ensure that
nested fields aren't included in a $set query if a parent is already marked
as changed. Not sure if this could occur but it prevents breakage if it does.
2013-12-16 13:44:07 +00:00
Ross Lawley
516591fe88
Docs update and canonical url fix
2013-12-13 09:46:45 +00:00
Ross Lawley
d2941a9110
Updated doc examples to open using read binary mode
2013-12-13 09:22:41 +00:00
Matthew Owen
f7302f710b
Reject email addresses where hostname ends with '.'
2013-12-05 09:50:12 -08:00
Ross Lawley
6a02ac7e80
Fix django auth import ( #531 )
2013-12-04 13:32:56 +00:00
Ross Lawley
d1b86fdef5
Fix for import
2013-12-04 13:31:54 +00:00
Ross Lawley
57ac38ddca
Version bump 0.8.5
2013-12-04 10:02:05 +00:00
Ross Lawley
7a73a92074
Update changelog
2013-12-04 10:01:16 +00:00
Ross Lawley
d1b30f4792
Fix auth to use get_user_document #527
2013-12-04 10:00:12 +00:00
Ross Lawley
16dcf78cab
Ensure id is Hashable
2013-12-02 14:14:46 +00:00
Ross Lawley
d868cfdeb0
Fix multi level nested fields getting marked as changed ( #523 )
2013-11-29 16:24:32 +00:00
Ross Lawley
c074f4d925
Django 1.6 login fix ( #522 )
2013-11-29 13:19:52 +00:00
Ross Lawley
453024c58d
Django 1.6 session fix ( #509 )
2013-11-29 13:11:56 +00:00
Ross Lawley
fe8340617a
Merge pull request #509 from j0hnsmith/bson_serializer
...
django 1.6 session problem
2013-11-29 05:10:02 -08:00
Ross Lawley
b024dd913d
EmbeddedDocument._instance is now set when settng the attribute ( #506 )
2013-11-29 13:09:11 +00:00
Ross Lawley
a2a698ab0e
Fixed EmbeddedDocument with ReferenceField equality issue ( #502 )
2013-11-29 12:46:18 +00:00
Ross Lawley
bb56f92213
Updated changelog and AUTHORS ( #499 )
2013-11-29 12:07:33 +00:00
Ross Lawley
8dcd998945
Merge pull request #499 from drudim/master
...
Error in GenericReferenceField serialization was fixed
2013-11-29 04:06:04 -08:00
Ross Lawley
bcbbbe4046
Added test, updated AUTHORS and changelog ( #498 )
2013-11-29 12:04:30 +00:00
Ross Lawley
7200a8cb84
Merge pull request #498 from woakas/patch-1
...
Fixed bug for count method when _none is True
2013-11-29 04:01:45 -08:00
Ross Lawley
6925344807
Test updates
2013-11-29 12:01:14 +00:00
Ross Lawley
60ceeb0ddd
Update change log and Authors ( #496 )
2013-11-29 11:55:03 +00:00
Ross Lawley
06caabf333
Import fix
2013-11-29 11:53:24 +00:00
Ross Lawley
954131bd51
Merge remote-tracking branch 'origin/pr/496'
2013-11-29 11:49:54 +00:00
Ross Lawley
855efe7fe8
Added user_permissions to Django User object ( #491 , #492 )
2013-11-29 11:48:14 +00:00
Ross Lawley
d902a74ab0
Merge remote-tracking branch 'origin/pr/492'
2013-11-29 11:45:06 +00:00
Ross Lawley
499e11f730
Updated AUTHORS ( #488 )
2013-11-29 11:42:30 +00:00
Ross Lawley
6db59a9c31
Fix setting Geo Location fields ( #488 )
2013-11-29 11:41:54 +00:00
Ross Lawley
6465726008
Fix handling invalid dict field value ( #485 )
2013-11-29 10:33:36 +00:00
Ross Lawley
3a3b96e0be
Merge remote-tracking branch 'origin/pr/485'
2013-11-29 10:32:49 +00:00
Ross Lawley
992c91dc0c
Merge remote-tracking branch 'origin/pr/484'
...
Conflicts:
AUTHORS
2013-11-29 10:17:15 +00:00
Ross Lawley
809473c15c
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-11-29 10:14:54 +00:00
Ross Lawley
d79a5ec3d6
Updated Authors and changelog ( #483 )
2013-11-29 10:12:02 +00:00
Ross Lawley
237469ceaf
Merge pull request #483 from grampajoe/connection-defaults
...
Use defaults when host and port are passed as None
2013-11-29 02:10:05 -08:00
Ross Lawley
c28d9135d9
Fixed distinct casting issue with ListField of EmbeddedDocuments ( #470 )
2013-11-29 09:48:53 +00:00
Ross Lawley
48a5679087
Added Django 1.6 to travis Refs: #480 , #454
2013-11-29 09:13:37 +00:00
Ross Lawley
7c938712f2
Updates to docs ref: #454 , #480
2013-11-29 09:11:08 +00:00
Ross Lawley
4df12bebc2
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-11-29 09:09:44 +00:00
Ross Lawley
dfe8987aaa
Updated geo tests
2013-11-29 09:09:16 +00:00
Ross Lawley
02dbe401d8
Merge pull request #480 from mishudark/master
...
fix(session Issue #454 ): session serializer to json
2013-11-29 01:08:30 -08:00
j0hnsmith
c18f8c92e7
added BSONSerializer
2013-11-11 15:13:41 +00:00
Eric Plumb
857cd718df
Fix for issue #425 - allow undeclared fields in an embedded dynamic document to be seen by queryset methods
2013-11-08 14:57:35 -08:00
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
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
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
rfkrocktk
fc4b247f4f
Patch for #491
...
Fix for issue #491 , a bug in the permissions system.
2013-10-14 13:13:34 -07:00
Mitar
ebf7056f4a
Test for testing invalid dict field value.
2013-10-06 02:55:02 -07:00
Dan Ward
eb975d7e13
Added entry to AUTHORS
2013-10-05 20:46:51 +01: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
e146262c38
Merge pull request #467 from adamsc64/doc_foreignkey_push_pull_example
...
Expanded example of using ListFields for one-to-many relationships.
2013-09-27 08:31:59 -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
Ross Lawley
0b6ab49325
Merge pull request #472 from swistakm/fix/docs-map-reduce-mongodb.org-link
...
fix broken external docs link on map_reduce
2013-09-27 07:58: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
Christopher Adams
2f9964e46e
Expanded example of using ListFields for one-to-many relationships.
...
- Added an example of how to use the atomic update operations to
pull and push to a ListField containing ReferenceFields.
2013-09-17 00:02:38 -04: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
bcbe740598
Updated setup.py
2013-08-23 13:41:15 +00:00
Ross Lawley
86c8929d77
0.8.4 is a go
2013-08-23 10:03:10 +00:00
Ross Lawley
6738a9433b
Updated travis
2013-08-23 09:36:33 +00:00
Ross Lawley
23843ec86e
Updated travis config
2013-08-23 09:06:57 +00:00
Ross Lawley
f4db0da585
Update changelog add LK4D4 to authors ( #452 )
2013-08-23 09:03:51 +00:00
Ross Lawley
9ee3b796cd
Merge pull request #452 from LK4D4/master
...
Remove database name necessity in uri connection schema
2013-08-23 02:02:12 -07: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
200e52bab5
Added documentation about abstract meta
...
Refs #438
2013-08-20 18:44:12 +00:00
Ross Lawley
a0ef649dd8
Update travis.yml
2013-08-20 18:31:33 +00: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
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
2cd722d751
Updated setup.py
2013-08-20 10:20:05 +00:00
Ross Lawley
49f5b4fa5c
Fix Queryset docs ( #448 )
2013-08-20 09:45:00 +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
ee7666ddea
Update AUTHORS and Changelog ( #441 )
2013-08-20 08:31:56 +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
Ross Lawley
3622ebfabd
Merge pull request #441 from Karmak23/patch-1
...
Fix the ._get_db() attribute after a Document.switch_db()
2013-08-20 01:19:26 -07: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
473110568f
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-08-06 11:07:25 +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
Ross Lawley
a171005010
Merge pull request #428 from devoto13/patch-1
...
Removed duplicated line for 'pop' method in documentation
2013-08-06 03:20:50 -07:00
Ross Lawley
f56ad2fa58
Merge pull request #426 from laurentpayot/Django_shortcuts_docs
...
updated docs for django shortcuts get_object_or_404 and get_list_or_404
2013-08-06 03:17:56 -07:00
veera
c9dc441915
Overridden the prepare_query_value method in SequenceField inorder to return the value as the required type.
2013-08-05 15:33:54 +05:30
Nicolas Cortot
a0d255369a
Add a test case for get_user_document
2013-08-04 11:29:16 +02: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
devoto13
a448c9aebf
removed duplicated method
2013-08-01 17:54:41 +03:00
Laurent Payot
b3f462a39d
updated docs for django shortcuts get_object_or_404 and get_list_or_404
2013-08-01 03:51:10 +02:00
Ross Lawley
7ce34ca019
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-07-31 09:44:50 +00:00
Ross Lawley
719bb53c3a
Updated changelog ( #423 )
2013-07-31 09:44:15 +00: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
7431b1f123
Updated AUTHORS ( #424 )
2013-07-31 09:31:04 +00: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
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
dc310b99f9
Updated docs about TTL indexes and signals ( #413 )
2013-07-30 10:54:04 +00:00
Ross Lawley
e98c5e10bc
Fixed dereference threading issue in ComplexField.__get__ ( #412 )
2013-07-30 10:49:08 +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
93a2adb3e6
Updating changelog and authors #417
2013-07-29 15:43:54 +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
Ross Lawley
b66cdc8fa0
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-07-29 15:30:21 +00: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
d143e50238
Replace assertIn with an assertTrue; apparently missing in Python 2.6
2013-07-25 15:34:58 +02:00
Paul Uithol
e27439be6a
Fix BaseDocument._delta when working with plain ObjectIds instead of DBRefs
2013-07-25 14:52:03 +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
f22737d6a4
Merge pull request #409 from bool-dev/master
...
Corrected mistakes in upgrade.rst documentation
2013-07-23 01:19:36 -07:00
Ross Lawley
a458d5a176
Docs update #406
2013-07-23 08:16:06 +00: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
bool-dev
bcf83ec761
Corrected spelling mistakes, some grammar, and UUID/DecimalField error in upgrade.rst
2013-07-18 09:17:28 +05:30
bool.dev
e44e72bce3
Merge remote-tracking branch 'upstream/master'
2013-07-18 08:49:02 +05:30
Ross Lawley
35f2781518
Update changelog
2013-07-12 09:11:27 +00:00
Ross Lawley
dc5512e403
Upgrade warning for 0.8.3
2013-07-12 09:01:11 +00:00
Ross Lawley
48ef176e28
0.8.3 is a go
2013-07-12 08:41:56 +00:00
Ross Lawley
1aa2b86df3
travis install python-dateutil direct
2013-07-11 09:38:59 +00:00
Ross Lawley
73026047e9
Trying to fix dateutil
2013-07-11 09:29:06 +00:00
Ross Lawley
6c2c33cac8
Add Jatin- to Authors, changelog update
2013-07-11 08:12:27 +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
f48a0b7b7d
Trying to fix travis
2013-07-10 21:30:29 +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
Ross Lawley
e155e1fa86
Add a default for previously pickled versions
2013-07-10 20:10:01 +00:00
Ross Lawley
e28fab0550
Merge remote-tracking branch 'origin/pr/400'
2013-07-10 19:56:15 +00:00
Ross Lawley
fb0dd2c1ca
Updated changelog
2013-07-10 19:54:30 +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
9d16364394
Merge remote-tracking branch 'origin/pr/391' into 391
2013-07-10 14:10:09 +00:00
Wilson Júnior
daeecef59e
Update fields.py
...
Typo in documentation for DecimalField
2013-07-10 10:59:41 -03:00
Ross Lawley
8131f0a752
Fixed sum and average mapreduce dot notation support ( #375 , #376 )
2013-07-10 13:53:18 +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
fa83fba637
Reload uses shard_key if applicable ( #384 )
2013-07-10 11:18:49 +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
f26f1a526c
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-07-10 09:12:36 +00:00
Ross Lawley
7cb46d0761
Fixed ListField setslice and delslice dirty tracking ( #390 )
2013-07-10 09:11:50 +00:00
Ross Lawley
0cb4070364
Added Django 1.5 PY3 support ( #392 )
2013-07-10 08:53:56 +00:00
Ross Lawley
bc008c2597
Merge remote-tracking branch 'origin/pr/392' into 392
2013-07-10 08:44:10 +00:00
Ross Lawley
a1d142d3a4
Prep for django and py3 support
2013-07-10 08:38:13 +00:00
Ross Lawley
aa00dc1031
Merge pull request #392 from lig/patch-1
...
Fix crash on Python 3.x and Django >= 1.5
2013-07-10 01:37:40 -07:00
Wilson Júnior
592c654916
extending support for queryset.sum and queryset.average methods
2013-07-05 10:36:11 -03:00
Serge Matveenko
5021b10535
Fix crash on Python 3.x and Django >= 1.5
2013-07-03 01:17:40 +04:00
Jan Schrewe
43d6e64cfa
Added a get_proxy_obj method to FileField and handle FileFields in container fields properly in ImageGridFsProxy.
2013-07-02 17:04:15 +02: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
kelvinhammond
e0d2fab3c3
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
...
Conflicts:
AUTHORS
2013-06-21 07:26:40 -04:00
Ross Lawley
9867e918fa
Fixed weakref being valid after reload ( #374 )
2013-06-21 11:04:29 +00:00
Ross Lawley
e6374ab425
Added Michael Bartnett to Authors ( #373 )
2013-06-21 10:40:15 +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
574f3c23d3
get should clone before calling
2013-06-21 09:35:22 +00:00
kelvinhammond
c31d6a6898
Fixed sum and average mapreduce function for issue #375
2013-06-19 10:34:33 -04:00
Ross Lawley
44a2a164c0
Doc updates
2013-06-13 10:54:39 +00:00
Stefan Wojcik
a7ca9950fc
potential fix for dereferencing nested lists
2013-06-11 15:36:35 -07:00
Stefan Wojcik
e0dd33e6be
move the test into a more appropriate location
2013-06-11 12:18:03 -07:00
Stefan Wojcik
2e718e1130
unit test showing the problem
2013-06-11 12:00:59 -07:00
Ross Lawley
ede9fcfb00
Version bump 0.8.2
2013-06-07 08:45:40 +00:00
Ross Lawley
a3d43b77ca
Updated changelog
2013-06-07 08:44:33 +00:00
Ross Lawley
e2b32b4bb3
Added more docs about compare_indexes ( #364 )
2013-06-07 08:43:05 +00:00
Ross Lawley
025c16c95d
Add BobDickinson to authors ( #361 )
2013-06-07 08:34:57 +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
Ross Lawley
f0d4e76418
Documentation updates
2013-06-07 08:21:15 +00:00
Stefan Wojcik
ba7101ff92
list_indexes support for multiple inheritance
2013-06-06 22:22:43 -07:00
Stefan Wojcik
a2457df45e
make sure to only search for indexes in base classes inheriting from TopLevelDocumentMetaclass
2013-06-06 19:14:21 -07:00
Stefan Wojcik
305540f0fd
better comment
2013-06-06 17:21:27 -07:00
Stefan Wojcik
c2928d8a57
list_indexes and compare_indexes class methods + unit tests
2013-06-06 17:16:03 -07:00
Ross Lawley
7451244cd2
Fixed cascading saves which weren't turned off as planned ( #291 )
2013-06-06 21:04:54 +00:00
Ross Lawley
d935b5764a
apt only had an ancient version of python-dateutil *sigh*
2013-06-06 18:02:06 +00:00
Ross Lawley
f3af76e38c
Added ygbourhis to AUTHORS ( #363 )
2013-06-06 17:59:07 +00:00
Ross Lawley
a7631223a3
Fixed Datastructures so instances are a Document or EmbeddedDocument ( #363 )
2013-06-06 17:58:10 +00:00
Ross Lawley
8aae4f0ed0
Trying to stabalise the build
2013-06-06 17:34:34 +00:00
Ross Lawley
542049f252
Trying to fix annoying python-dateutil bug
2013-06-06 17:31:50 +00:00
Ross Lawley
9f3394dc6d
Added testcase for ListFields with just pks ( #361 )
2013-06-06 17:19:19 +00:00
Ross Lawley
06f5dc6ad7
Docs update
2013-06-06 16:44:43 +00:00
Ross Lawley
dc3b09c218
Improved cascading saves write performance ( #361 )
2013-06-06 16:36:17 +00:00
Ross Lawley
ad15781d8f
Fixed amibiguity and differing behaviour regarding field defaults ( #349 )
...
Now field defaults are king, unsetting or setting to None on a field
with a default means the default is reapplied.
2013-06-06 13:31:52 +00:00
Ross Lawley
ea53612822
Merge remote-tracking branch 'origin/pr/349' into 349
2013-06-06 12:06:23 +00:00
Ross Lawley
c3a065dd33
Removing old test re: #348
2013-06-05 13:44:21 +00:00
Ross Lawley
5cb2812231
Reverting Fixed hashing of EmbeddedDocuments ( #348 )
2013-06-05 13:03:15 +00:00
Ross Lawley
f8904a5504
Explicitly set w:1 if None in save
2013-06-05 12:14:22 +00:00
Ross Lawley
eb1df23e68
Updated AUTHORS ( #340 , #348 , #353 )
2013-06-05 11:50:26 +00:00
Ross Lawley
e5648a4af9
ImageFields now include PIL error messages if invalid error ( #353 )
2013-06-05 11:45:08 +00:00
Ross Lawley
a246154961
Fixed hashing of EmbeddedDocuments ( #348 )
2013-06-05 11:31:13 +00:00
Ross Lawley
ce44843e27
Doc fix for #340
2013-06-05 11:11:02 +00:00
Ross Lawley
1a54dad643
Filter out index scan for pymongo cache
2013-06-05 10:42:41 +00:00
Ross Lawley
940dfff625
Code cleanup
2013-06-05 09:49:26 +00:00
Ross Lawley
c2b15183cb
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-06-05 09:30:56 +00:00
Ross Lawley
27e8aa9c68
Added comment about why temp debugging exists
2013-06-05 09:30:01 +00:00
Ross Lawley
e1d8c6516a
Merge pull request #356 from elasticsales/simpler-cls-query
...
Simplify _cls queries when only a single class
2013-06-05 02:20:22 -07:00
Stefan Wojcik
eba81e368b
dont use $in for _cls queries with a single subclass
2013-06-04 15:32:23 -07:00
Ross Lawley
74a3fd7596
Added queryset delete tests for signals
2013-06-04 16:59:25 +00:00
Ross Lawley
eeb5a83e98
Added lock when calling doc.Delete() for when signals have no sender ( #350 )
2013-06-04 16:35:25 +00:00
Ross Lawley
d47134bbf1
Reload forces read preference to be PRIMARY ( #355 )
2013-06-04 11:03:50 +00:00
Ross Lawley
ee725354db
Querysets are now lest restrictive when querying duplicate fields ( #332 , #333 )
2013-06-04 10:46:38 +00:00
Ross Lawley
985bfd22de
Merge remote-tracking branch 'origin/pr/333' into 333
2013-06-04 10:22:54 +00:00
Ross Lawley
0d35e3a3e9
Added debugging for query counter
2013-06-04 10:20:49 +00:00
Ross Lawley
d94a191656
Updated Changelog added test for #341
2013-06-04 10:20:24 +00:00
Ross Lawley
0eafa4acd8
Merge pull request #341 from ichuang/master
...
FileField now honouring db_alias
2013-06-04 02:58:20 -07:00
Ross Lawley
f27a53653b
Updated changelog
2013-06-04 09:56:38 +00:00
Ross Lawley
3b60adc8da
Merge pull request #344 from matchbox/complex-change-tracking
...
Remove custom change tracking for ComplexBaseFields just use BaseField's one
2013-06-04 02:54:59 -07:00
Ross Lawley
626a3369b5
Removed unused var in _get_changed_fields ( #347 )
2013-06-04 09:51:58 +00:00
Ross Lawley
4244e7569b
Added pre_save_post_validation signal ( #345 )
2013-06-04 09:35:44 +00:00
Ross Lawley
ef4b32aca7
Merge remote-tracking branch 'origin/pr/346' into 345
...
Conflicts:
AUTHORS
docs/guide/signals.rst
2013-06-04 09:35:26 +00:00
Ross Lawley
dcd23a0b4d
Merge pull request #345 from amcgregor/master
...
Addition of pre_save_validation and move of pre_save to after validation.
2013-06-04 02:13:25 -07:00
Ross Lawley
5447c6e947
DateTimeField now auto converts valid datetime isostrings into dates ( #343 )
2013-06-04 09:08:13 +00:00
Ross Lawley
f1b97fbc8b
Merge pull request #343 from matchbox/dateutil
...
if `dateutil` is available, use it to parse datetimes
2013-06-04 01:22:31 -07:00
Ross Lawley
4c8dfc3fc2
Fixed Doc.objects(read_preference=X) not setting read preference ( #352 )
2013-06-03 15:40:54 +00:00
Ross Lawley
ceece5a7e2
Improved PIL detection for tests
2013-06-03 13:38:58 +00:00
Ross Lawley
7e6b035ca2
Added hensom to AUTHORS #329
2013-06-03 13:32:30 +00:00
Ross Lawley
fbc46a52af
Updated changelog
2013-06-03 13:31:42 +00:00
Ross Lawley
8d2e7b4372
Django session ttl index expiry fixed ( #329 )
2013-06-03 13:31:35 +00:00
Ross Lawley
e7da9144f5
Merge pull request #342 from elasticsales/fix-pickle-loads
...
Fix for pickle.loads
2013-06-03 06:20:21 -07:00
Ross Lawley
2128e169f3
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-06-03 13:14:21 +00:00
Ross Lawley
8410d64daa
Merge pull request #337 from jinzhang273/patch-1
...
Corrected some typos in django.rst
2013-06-03 06:13:59 -07:00
Ross Lawley
b2f78fadd9
Added test for upsert & update_one #336
2013-06-03 13:05:52 +00:00
Ross Lawley
3656323f25
Merge pull request #335 from ryanwitt/patch-2
...
minor typos in documentation
2013-06-03 06:03:59 -07:00
Ross Lawley
2fe1c20475
Added Jiequan to AUTHORS #354
2013-06-03 13:03:07 +00:00
Ross Lawley
0fb976a80a
Added Ryan to AUTHORS #334
2013-06-03 13:01:48 +00:00
Ross Lawley
3cf62de753
Merge pull request #334 from ryanwitt/patch-1
...
fix link to guide from tutorial
2013-06-03 06:00:48 -07:00
Ross Lawley
06119b306d
Merge pull request #354 from Jiequan/patch-1
...
Update upgrade.rst: Added docs for the new function clean()
2013-06-03 05:56:56 -07:00
Jiequan
0493bbbc76
Update upgrade.rst
...
Added docs for the new function: clean()
2013-06-02 20:46:51 +08:00
Nigel McNie
4c9e90732e
Apply defaults to fields with None value at 'set' time.
...
If a field has a default, and you explicitly set it to None, the
behaviour before this patch was very confusing:
class Person(Document):
created = DateTimeField(default=datetime.datetime.utcnow)
>>> p = Person(created=None)
>>> p.created
datetime.datetime(2013, 5, 30, 0, 18, 20, 242628)
>>> p.created
datetime.datetime(2013, 5, 30, 0, 18, 20, 995248)
>>> p.created
datetime.datetime(2013, 5, 30, 0, 18, 21, 370578)
It would be stored as None, and then at 'get' time, the default would be
applied. As you can see, if the default is a generator, this leads to some
crazy behaviour.
There's an argument that if I asked it to be set to None, why not respect that?
But I don't think that's how the rest of mongoengine seems to work (for
example, setting a field to None seems to mean it doesn't even get set in mongo
- as opposed to being set but with a 'null' value). Besides, as the code shows
above, you'd expect p.created to return None. So clearly, mongoengine is
already expecting None to mean 'default' where a default is available.
This bug also interacts nastily with required=True - if you're forcibly setting
the field to None, then at validation time, the None will fail validation
despite a perfectly valid default being available.
With this patch, when the field is set, the default is immediately applied.
This means any generation happens once, the getter always returns the same
value, and 'required' validation always respects the default.
Note: this breakage seems to be new since mongoengine 0.8.
2013-05-30 16:37:40 +12:00
Alice Bevan-McGregor
35f084ba76
Fixed :module: reference in docs and added myself to authors.
2013-05-29 13:23:18 -04:00
Alice Bevan-McGregor
f28f336026
Improved signals documentation and some typo fixes.
2013-05-29 13:17:08 -04:00
Alice Bevan-McGregor
122d75f677
Added pre_save_validation to signal list in documentation.
2013-05-29 12:23:32 -04:00
Alice Bevan-McGregor
12f6a3f5a3
Added tests for pre_save_validation and updated tests for pre_save to encompass created flag.
2013-05-29 12:22:15 -04:00
Alice Bevan-McGregor
5d44e1d6ca
Added missing reference in __all__.
2013-05-29 12:12:51 -04:00
Alice Bevan-McGregor
04592c876b
Moved pre_save after validation and determination of creation state; added pre_save_validation where pre_save had been.
2013-05-29 12:04:53 -04:00
Paul Swartz
c0571beec8
fix change tracking for ComplexBaseFields
2013-05-28 17:19:46 -04:00
Paul Swartz
1302316eb0
add some tests
2013-05-28 16:08:33 -04:00
Paul Swartz
18d8008b89
if dateutil is available, use it to parse datetimes
...
In particular, this picks up the default `datetime.isoformat()` output, with
a "T" as the separator.
2013-05-28 15:59:32 -04:00
Stefan Wojcik
4670f09a67
fix __set_state__
2013-05-27 13:48:02 -07:00
ichuang
159ef12ed7
FileField should pass db_alias to GridFSProxy in __set__ call
2013-05-27 11:19:34 -04:00
Jin Zhang
7a760f5640
Update django.rst
2013-05-25 06:46:23 -06:00
Ryan Witt
2b6c42a56c
minor typos
2013-05-24 11:34:15 -03:00
Ryan Witt
ab4ff99105
fix guide link
2013-05-24 11:24:40 -03:00
Stefan Wojcik
774895ec8c
dont simplify queries with duplicate conditions
2013-05-23 17:49:28 -07:00
Ross Lawley
c5ce96c391
Fix py3 test
2013-05-23 19:44:05 +00:00
Ross Lawley
b4a98a4000
More upgrade clarifications #331
2013-05-23 19:30:57 +00:00
Ross Lawley
5f0d86f509
Upgrade doc fix ( #330 )
2013-05-23 19:12:13 +00:00
Ross Lawley
c96a1b00cf
Documentation cleanup ( #328 )
2013-05-23 19:09:05 +00:00
Ross Lawley
1eb6436682
Added get image by grid_id example
2013-05-22 10:29:45 +00:00
Ross Lawley
a84e1f17bb
Fixing django tests for py 2.6
2013-05-21 09:42:22 +00:00
Ross Lawley
3ffc9dffc2
Updated requirements for test suite
2013-05-21 09:37:22 +00:00
Ross Lawley
048c84ab95
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-05-21 09:12:38 +00:00
Ross Lawley
a7470360d2
Version bump
2013-05-21 09:12:09 +00:00
Ross Lawley
50f1ca91d4
Updated Changelog
2013-05-21 09:05:55 +00:00
Ross Lawley
0d37e1cd98
Merge pull request #326 from mitar/importlib-python26
...
importlib does not exist on Python 2.6. Use Django version.
2013-05-21 00:19:29 -07:00
Ross Lawley
9aa77bb3c9
Fixed pickle unsaved document regression ( #327 )
2013-05-21 07:07:17 +00:00
Ross Lawley
fd11244966
Merge pull request #327 from elasticsales/pickle-error
...
Document is not picklable before it is saved
2013-05-21 00:05:00 -07:00
Stefan Wojcik
d060da094f
update pickling test case to show the error
2013-05-20 17:40:56 -07:00
Mitar
306f9c5ffd
importlib does not exist on Python 2.6. Use Django version.
2013-05-20 17:30:41 -07:00
Ross Lawley
5ef5611682
0.8.0 is a go
2013-05-20 12:34:47 +00:00
Ross Lawley
ebdd2d730c
Fixed querying ReferenceField custom_id ( #317 )
2013-05-20 10:20:43 +00:00
Ross Lawley
1ddf8b3159
Merge remote-tracking branch 'origin/pr/317'
2013-05-20 10:20:04 +00:00
Ross Lawley
a6bc870815
Fixed pickle issues with collections ( #316 )
2013-05-20 10:10:53 +00:00
Ross Lawley
56cd73823e
Add backwards compat for pickle
2013-05-20 10:09:16 +00:00
Ross Lawley
6299015039
Updated pickling ( #316 )
2013-05-20 10:04:17 +00:00
Ross Lawley
11b7cfb5ff
Merge remote-tracking branch 'origin/pr/316' into 316
2013-05-20 09:08:12 +00:00
Ross Lawley
367f49ce1c
Updated changelog
2013-05-20 08:12:50 +00:00
Ross Lawley
8165131419
Doc updated
2013-05-20 08:12:09 +00:00
Ross Lawley
e402157b4d
Merge remote-tracking branch 'origin/pr/319'
2013-05-20 08:10:37 +00:00
Ross Lawley
967da7944f
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-05-20 08:09:30 +00:00
Ross Lawley
89f1c21f20
Updated AUTHORS ( #325 )
2013-05-20 08:08:52 +00:00
Ross Lawley
7e706190a5
Merge pull request #325 from daxtens/doc-fixes
...
Minor documentation fix: switch_collection -> switch_db for changing database
2013-05-20 01:07:39 -07:00
Daniel Axtens
36a3770673
If you need to read from another database, use switch_db not switch_collection.
2013-05-20 15:49:01 +10:00
Wilson Júnior
bc92f78afb
fixes for value_decorator
2013-05-16 13:12:49 -03:00
Wilson Júnior
f7e22d2b8b
fixes for get_next_value
2013-05-16 13:05:07 -03:00
Wilson Júnior
0b1e11ba1f
added my github profile
2013-05-16 12:55:16 -03:00
Wilson Júnior
10e0b1daec
Merge branch 'master' of https://github.com/MongoEngine/mongoengine
2013-05-16 12:50:47 -03:00
Wilson Júnior
731d8fc6be
added get_next_value to SequenceField
2013-05-16 12:50:34 -03:00
Stefan Wojcik
f6d0b53ae5
test reference to a custom pk doc
2013-05-13 21:42:20 -07:00
Léo S
0efb90deb6
Added a failing test when using pickle with signal hooks
2013-05-13 13:14:15 +02:00
Ross Lawley
b16eabd2b6
Updated version
2013-05-10 15:09:08 +00:00
Ross Lawley
f8350409ad
assertEquals is bad
2013-05-10 15:08:01 +00:00
Ross Lawley
5b498bd8d6
Added no_sub_classes context manager and queryset helper ( #312 )
2013-05-10 15:05:16 +00:00
Ross Lawley
941042d0ba
Merge remote-tracking branch 'origin/pr/312' into 312
2013-05-10 14:44:44 +00:00
Ross Lawley
9251ce312b
Querysets now utilises a local cache
...
Changed __len__ behavour in the queryset (#247 , #311 )
2013-05-10 13:57:32 +00:00
Wilson Júnior
96a964a183
added .disable_inheritance method for the simple fetch exclusives classes
2013-05-09 13:18:58 -03:00
Ross Lawley
9e513e08ae
Updated RC version
2013-05-07 11:55:56 +00:00
Ross Lawley
9dfee83e68
Fixed querying string versions of ObjectIds issue with ReferenceField ( #307 )
2013-05-07 11:54:47 +00:00
Ross Lawley
7cde979736
Updated fields
2013-05-07 11:39:16 +00:00
Ross Lawley
870ff1d4d9
Added $setOnInsert support for upserts ( #308 )
...
Upserts now possible with just query parameters (#309 )
2013-05-07 11:11:55 +00:00
Ross Lawley
52c162a478
Pep8
2013-05-07 11:01:23 +00:00
Ross Lawley
ddd11c7ed2
Added offline docs links
2013-05-07 10:57:52 +00:00
Ross Lawley
2c119dea47
Upserting is the only way to ensure docs are saved correctly ( #306 )
2013-05-07 10:34:13 +00:00
Ross Lawley
ebd1561682
Updated changelog
2013-05-03 14:21:36 +00:00
Ross Lawley
3ccc495c75
Fixed register_delete_rule inheritance issue
2013-05-03 12:56:53 +00:00
Ross Lawley
0eda7a5a3c
0.8.0RC2 is a go
2013-05-02 10:51:04 +00:00
Ross Lawley
f2c16452c6
Help with backwards compatibility
2013-05-02 10:48:30 +00:00
Ross Lawley
a2c429a4a5
Queryset cursor regeneration testcase
2013-05-02 10:48:09 +00:00
Ross Lawley
4a71c5b424
Updates to CONTRIBUTING.rst
2013-05-02 10:47:37 +00:00
Ross Lawley
268dd80cd0
Added Jin Zhang to authors ( #304 )
2013-05-02 07:35:44 +00:00
Ross Lawley
3002e79c98
Updated changelog
2013-05-02 07:35:33 +00:00
Ross Lawley
5eab348e82
Merge pull request #304 from jinzhang273/master
...
Fixed typo in defining-documents.rst
2013-05-02 00:34:18 -07:00
Jin
1cdbade761
fixed typo in defining-documents.rst
2013-05-01 16:54:48 -07:00
Ross Lawley
8c9afbd278
Fix cloning of sliced querysets ( #303 )
2013-05-01 19:40:49 +00:00
Ross Lawley
cd73654683
Update readme
2013-05-01 09:48:58 +00:00
Ross Lawley
9654fe0d8d
0.8.0RC1 is a go!
2013-05-01 09:30:20 +00:00
Ross Lawley
3d49c33c6a
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-05-01 08:48:42 +00:00
Ross Lawley
e58b3390aa
Removed import with from future
2013-05-01 08:48:14 +00:00
Ross Lawley
92a1f5736b
Merge pull request #302 from Demoncode/upstream
...
Pass through write_concern from update_one to update correctly
2013-05-01 01:44:52 -07:00
Alex Kelly
00a57f6cea
Pass write_concern parameter from update_one
2013-04-30 21:44:07 +01:00
Alex Kelly
1c345edc49
Updated tests for passing write_concern to update and update_one to check return.
2013-04-30 21:43:44 +01:00
Ross Lawley
7aa1f47378
Updated minimum requirements
2013-04-30 16:46:08 +00:00
Ross Lawley
473d5ead7b
Geo errors fix and test update
2013-04-30 16:42:38 +00:00
Ross Lawley
68f760b563
get_db() only assigns the db after authentication ( #257 )
2013-04-30 15:05:41 +00:00
Ross Lawley
9c1cd81adb
Add support for new geojson fields, indexes and queries ( #299 )
2013-04-30 14:46:23 +00:00
Ross Lawley
85b81fb12a
If values cant be compared mark as changed ( #287 )
2013-04-29 10:36:11 +00:00
Ross Lawley
5d7444c115
Ensure as_pymongo() and to_json honour only() and exclude() ( #293 )
2013-04-29 09:38:21 +00:00
Ross Lawley
b0c1ec04b5
Improvements to indexing documentation ( #130 )
2013-04-29 07:38:31 +00:00
bool.dev
5cfd8909a8
Merge remote-tracking branch 'upstream/master'
2013-04-28 13:40:58 +05:30
Ross Lawley
6e2d2f33de
Updated benchmarks for #27
2013-04-26 14:33:40 +00:00
Ross Lawley
5e65d27832
PEP8 x == True should be x is True
2013-04-26 11:46:12 +00:00
Ross Lawley
36993097b4
Document serialization uses field order to ensure a strict order is set ( #296 )
2013-04-26 11:38:45 +00:00
Ross Lawley
2447349383
Added a note about distinct being a command
2013-04-26 09:59:43 +00:00
Ross Lawley
7765f272ac
Documentation api and reference cleanups
2013-04-26 08:46:46 +00:00
Ross Lawley
13d8dfdb5f
Save py2.6 from Decimal Float fun
2013-04-26 08:43:38 +00:00
Ross Lawley
5e94637adc
DecimalField now stores as float not string ( #289 )
2013-04-25 15:39:57 +00:00
Ross Lawley
ac6e793bbe
UUIDField now stores as a binary by default ( #292 )
2013-04-25 13:43:56 +00:00
Ross Lawley
d0d9c3ea26
Test to ensure that pickled complex fields work with save() ( #228 )
2013-04-25 12:21:25 +00:00
Ross Lawley
f7bc58a767
Added assertIn / assertNotIn for python 2.6
2013-04-25 12:03:44 +00:00
Ross Lawley
bafdf0381a
Updates
2013-04-25 11:59:56 +00:00
Ross Lawley
3fc5dc8523
Testing if travis 2.6 is >= 2.6.6
2013-04-25 11:46:18 +00:00
Ross Lawley
df4dc3492c
Upgrade changelog, docs and django/auth.py
2013-04-25 11:41:01 +00:00
Ross Lawley
10731b0fd8
Merge remote-tracking branch 'origin/pr/285' into p285
2013-04-25 11:18:21 +00:00
Ross Lawley
cb9166aba4
Auth cleanups - removed duplicates
2013-04-25 11:04:33 +00:00
Ross Lawley
fe62c3aacb
Cascading saves now default to off ( #291 )
2013-04-25 10:24:33 +00:00
Ross Lawley
c60ea40828
ReferenceField now store ObjectId's by default rather than DBRef ( #290 )
2013-04-24 12:14:34 +00:00
Ross Lawley
c59ea26845
Updated docs to clarify or != | (##288)
2013-04-24 11:17:21 +00:00
Ross Lawley
9bd8b3e9a5
Connection doc updates
2013-04-23 20:55:37 +00:00
Ross Lawley
5271f3b4a0
More doc updates
2013-04-23 20:49:22 +00:00
Ross Lawley
8a7b619b77
Tutorial updates
2013-04-23 20:37:05 +00:00
Ross Lawley
88f96b0838
Ensure all field params are documented ( #97 )
2013-04-23 15:59:23 +00:00
Ross Lawley
1e1e48732a
Update setup.py python versions / langauge in changelog
2013-04-23 15:33:38 +00:00
Ross Lawley
3537897fc5
Update build assets for PY3
2013-04-23 15:32:10 +00:00
Ross Lawley
3653981416
Added ImageField support for inline replacements ( #86 )
2013-04-23 15:12:57 +00:00
Ross Lawley
94d1e566c0
Added SequenceField.set_next_value(value) helper ( #159 )
2013-04-23 14:44:17 +00:00
Ross Lawley
a692316293
Update to upgrade docs
2013-04-23 14:09:41 +00:00
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
e4f38b5665
Fragile test fix
2013-04-22 16:46:59 +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
Ross Lawley
80db9e7716
Updated travis
2013-04-22 13:06:29 +00:00
Ross Lawley
7cf2a3e978
Merge branch 'master' into 0.8
...
Conflicts:
mongoengine/__init__.py
2013-04-22 13:03:10 +00:00
Nicolas Cortot
681b74a41c
Travis: adding Django-1.5.1 to env
2013-04-19 19:08:53 +02:00
Nicolas Cortot
d39d10b9fb
Tests should not require Django 1.5 to run
2013-04-19 18:28:45 +02: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
6affbbe865
Update changelog location
2013-04-19 13:08:46 +00:00
Ross Lawley
e3600ef4de
Updated version
2013-04-19 12:53:46 +00:00
Ross Lawley
f0eaec98c7
Merge branch 'master' into 0.8
2013-04-19 12:47:41 +00:00
Ross Lawley
6dcd7006d0
Fix test
2013-04-19 12:47:19 +00:00
Ross Lawley
5de4812477
Updating AUTHORS ( #283 )
2013-04-18 13:38:36 +00: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
1108586303
Updated queryset
2013-04-18 13:26:35 +00:00
Ross Lawley
3f49923298
Update AUTHORS and changelog ( #278 )
2013-04-18 13:21:36 +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
539f01d08e
Merge branch 'master' into 0.8
...
Conflicts:
mongoengine/base.py
tests/test_document.py
2013-04-17 15:09:03 +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
daniil
c2d77f51bb
test for #278 issue
2013-04-17 12:14:07 +04:00
Ross Lawley
b4d87d9128
Updated changelog
2013-04-16 20:50:34 +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
3a85422e8f
Added 64-bit integer support ( #251 )
2013-04-16 20:35:29 +00:00
Ross Lawley
e45397c975
Merge remote-tracking branch 'origin/pr/251'
2013-04-16 20:34:32 +00:00
Ross Lawley
1f9ec0c888
Added Django sessions TTL support ( #224 )
2013-04-16 20:30:40 +00:00
Ross Lawley
f8ee470e70
Merge remote-tracking branch 'origin/pr/224'
2013-04-16 20:28:24 +00:00
Ross Lawley
d02de0798f
Documentation fix explaining adding a dummy backend for django ( #172 )
2013-04-16 20:26:23 +00:00
Ross Lawley
6fe074fb13
Fixed issue with numerical keys in MapField(EmbeddedDocumentField()) ( #240 )
2013-04-16 20:21:11 +00:00
Ross Lawley
4db339c5f4
Merge remote-tracking branch 'origin/pr/240'
2013-04-16 20:19:23 +00:00
Ross Lawley
a525764359
Fixed clearing _changed_fields for complex nested embedded documents ( #237 , #239 , #242 )
2013-04-16 20:12:01 +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
d80b1a7749
Test clean up ( #255 )
2013-04-15 08:03:51 +00:00
Ross Lawley
6186691259
Updated changelog and AUTHORS ( #255 )
2013-04-15 08:01:24 +00: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
757ff31661
Updated changelog
2013-04-15 07:53:57 +00:00
Ross Lawley
97a98f0045
Only mark a field as changed if the value has changed ( #258 )
2013-04-15 07:52:04 +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
b6977a88ea
Explicitly check for Document instances when dereferencing ( #261 )
2013-04-15 07:32:04 +00:00
Ross Lawley
eafbc7f20d
Merge remote-tracking branch 'origin/pr/261'
2013-04-15 07:31:02 +00:00
bool.dev
d92f992c01
Removed merge trackers in code, merged correctly now.
2013-04-14 13:48:11 +05:30
bool.dev
20a5d9051d
Merge conflicts resolved.
2013-04-14 13:39:54 +05:30
Ross Lawley
c9a5710554
Fixed order_by chaining issue ( #265 )
2013-04-12 15:56:40 +00:00
Ross Lawley
f10e946896
Merge remote-tracking branch 'origin/pr/265' into 265
2013-04-12 14:27:37 +00:00
Ross Lawley
2f19b22bb2
Added dereference support for tuples ( #250 )
2013-04-12 14:25:43 +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
836dc96f67
Updated changelog
2013-04-12 12:56:15 +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
Ross Lawley
210b3e5192
Merge remote-tracking branch 'origin/pr/254'
2013-04-12 10:41:07 +00:00
Ross Lawley
5f1d5ea056
Try and fix wobbly test
2013-04-12 10:35:09 +00:00
Ross Lawley
19a7372ff9
Fix test_require for Django
2013-04-12 10:32:50 +00:00
Ross Lawley
cc5b60b004
Updated pymongo versions and pillow wont work
2013-04-12 10:30:52 +00:00
Ross Lawley
b06f9dbf8d
Travis travis travis
2013-04-12 10:02:55 +00:00
Ross Lawley
d9b8ee7895
next test
2013-04-11 15:47:53 +00:00
Ross Lawley
e9ff655b0e
Trying to fix travis
2013-04-11 15:00:49 +00:00
Ross Lawley
d58341d7ae
Fix doc generation path ( #230 )
...
Add Lukaszb to Authors
2013-04-11 13:15:17 +00:00
Ross Lawley
669d21a114
Merge pull request #241 from benoitlouy/fixing_travis_build
...
Fixing travis build
2013-04-11 04:51:51 -07: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
bool.dev
782d48594a
Fixes resolving to db_field from class field name, in distinct() query.
2013-04-04 09:02:30 +05:30
Alice Bevan-McGregor
07d3e52e6a
Tests for construction using positional parameters.
2013-04-03 15:03:33 -04: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
Stefan Wojcik
dfabfce01b
show that order_by followed by limit works, but not the other way around
2013-04-01 17:17:01 -07:00
Stefan Wojcik
74f3f4eb15
more ordering unit tests
2013-04-01 16:17:17 -07: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
Aleksandr Sorokoumov
165bea5bb9
QuerySet chaining test was supplemented with ReferenceField
...
chaining test
2013-03-18 12:32:49 +01:00
Aleksandr Sorokoumov
f7515cfca8
add myself to AUTHORS
2013-03-18 12:22:55 +01:00
Jaepil Jeong
a762a10dec
Revert "Fixed potential overflow error."
...
This reverts commit 67182713d9 .
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
e9464e32db
Added test cases for LongField.
2013-03-14 23:59:50 +09:00
Jaepil Jeong
2d6ae16912
Added LongField to support 64-bit integer type.
2013-03-14 23:25:22 +09:00
Russ Weeks
f9cd8b1841
added unit test for dereference patch
2013-03-12 12:45:38 -07:00
Russ Weeks
41a698b442
Changed dereference.py to keep tuples as tuples
2013-03-12 10:28:29 -07:00
Ross Lawley
9f58bc9207
Merge pull request #245 from zmolodchenko/patch-1
...
fix error reporting, where choices is list of flat values
2013-03-12 01:13:16 -07:00
zmolodchenko
d36f6e7f24
fix error reporting, where choices is list of flat values
2013-03-09 21:08:10 +02:00
Ross Lawley
eeb672feb9
Removing custom layout
2013-03-07 15:37:01 +00:00
Ross Lawley
063a162ce0
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-03-07 15:31:48 +00:00
Ross Lawley
3e4a900279
Adding google analytics
2013-03-07 15:25:18 +00:00
benoitlouy
43327ea4e1
Add testcase for issue #237
2013-03-01 07:38:28 -05:00
benoitlouy
0d2e84b16b
Fix for issue #237 : clearing changed fields recursively in EmbeddedDocuments after saving a Document
2013-02-28 00:37:34 -05:00
Benoit Louy
3c78757778
fix travis build: builds were failing because libz.so location changed.
2013-02-26 09:55:29 -05:00
Loic Raucy
d0245bb5ba
Fixed #238 : dictfields handle numerical strings indexes.
2013-02-26 11:26:51 +01:00
Loic Raucy
3477b0107a
Added regression test for numerical string keys.
2013-02-26 11:26:38 +01:00
Ross Lawley
8df9ff90cb
Update LICENSE
2013-02-14 08:26:36 +00:00
hellysmile
d6b4ca7a98
Fix docs quotes
2013-02-01 04:19:55 +02:00
hellysmile
2e18199eb2
Django sessions TTL support
2013-02-01 04:17:16 +02:00
Ross Lawley
025e17701b
Fixed inner queryset looping ( #204 )
2013-01-29 10:33:13 +00:00
Ross Lawley
156ca44a13
Doc fix thanks to @jabapyth ( #206 )
2013-01-28 16:49:34 +00:00
Ross Lawley
39dac7d4db
Fix file open rules
2013-01-28 16:26:01 +00:00
Ross Lawley
9ca632d518
Updated Save so it calls $set and $unset in a single operation ( #211 )
2013-01-28 16:00:38 +00:00
Ross Lawley
4177fc6df2
Can call del Doc.attr to delete field value
2013-01-28 15:57:33 +00:00
Ross Lawley
d90890c08e
Merge branch 'single-work-op' of https://github.com/njoyce/mongoengine into 211
...
Conflicts:
mongoengine/document.py
tests/test_document.py
2013-01-28 15:05:12 +00:00
Ross Lawley
1ca098c402
Fixed invalid choices error bubbling ( #214 )
2013-01-28 14:40:26 +00:00
Ross Lawley
3208a7f15d
Merge fix tests
2013-01-28 14:28:40 +00:00
Ross Lawley
8eda52e8e0
Merge branch 'master' of https://github.com/malderete/mongoengine into 214
...
Conflicts:
AUTHORS
mongoengine/base.py
tests/fields/fields.py
2013-01-28 14:27:17 +00:00
Ross Lawley
5b161b7445
ReadPreference that overrides slave_okay ( #218 )
2013-01-28 14:17:54 +00:00
Ross Lawley
8c1f8e54cd
Added the "get_decoded" method to the MongoSession class ( #216 )
2013-01-28 14:12:47 +00:00
Ross Lawley
03d3c26a99
Merge branch 'patch-1' of https://github.com/lcya86/mongoengine into 0.8
2013-01-28 14:09:51 +00:00
Ross Lawley
0cbd3663e4
Updated tests
2013-01-28 13:40:28 +00:00
Ross Lawley
f182daa85e
Fixed Documents deleted via a queryset don't call any signals ( #105 )
2013-01-28 13:32:21 +00:00
Ross Lawley
de2f774e85
Fix validation test
2013-01-28 13:29:44 +00:00
Ross Lawley
9d9a4afee9
Added Doc class and pk to Validation messages ( #69 )
2013-01-28 12:05:09 +00:00
Ross Lawley
0ea363c7fc
Updated authors and changelof ( #142 )
2013-01-25 12:13:46 +00:00
Ross Lawley
d7ee47ee25
Merge branch 'add_group_permission' of https://github.com/multmeio/mongoengine into 0.8
...
Conflicts:
mongoengine/django/auth.py
2013-01-25 12:11:22 +00:00
Ross Lawley
eb1b6e34c7
Updated upgrade docs ( #49 )
2013-01-25 11:51:58 +00:00
Ross Lawley
621b2b3f72
Undefined data should not override instance methods ( #49 )
2013-01-25 11:28:20 +00:00
Ross Lawley
83da08ef7d
Documentation fixes
2013-01-24 17:43:57 +00:00
Ross Lawley
9f551121fb
Added docs for no_dereference and scalar ( #68 )
2013-01-24 17:41:21 +00:00
Ross Lawley
ba48dfb4bf
Added no_dereference method for querysets ( #82 ) ( #61 )
2013-01-24 17:33:10 +00:00
Ross Lawley
ed2ea24b75
More test edge case fixing
2013-01-24 13:10:51 +00:00
Ross Lawley
eefbd3f597
Updated wobbly python 3.3 test
2013-01-24 12:52:16 +00:00
Ross Lawley
e38bf63be0
Fixed overriding objects with custom manager ( #58 )
2013-01-24 11:29:51 +00:00
Ross Lawley
e7ba5eb160
Added #121 to changelog
2013-01-24 10:41:01 +00:00
Ross Lawley
fff27f9b87
Added support for compound primary keys ( #149 )
2013-01-24 10:37:54 +00:00
Ross Lawley
d58f594c17
Updated changelog
2013-01-23 21:21:46 +00:00
Ross Lawley
9797d7a7fb
Added switch_collection context manager and method ( #220 )
2013-01-23 21:19:21 +00:00
Ross Lawley
c8b65317ef
Updated documentation instance tests
2013-01-23 20:15:05 +00:00
Ross Lawley
3a6dc77d36
Added no_dereference context manager ( #82 )
...
Reorganised the context_managers as well
2013-01-23 19:05:44 +00:00
Ross Lawley
4f70c27b56
Updated doc string
2013-01-23 16:19:07 +00:00
Ross Lawley
ea46edf50a
Added switch_db method to document instances ( #106 )
2013-01-23 16:07:07 +00:00
Ross Lawley
e5e88d792e
Added SwitchDB context manager ( #106 )
2013-01-23 12:54:14 +00:00
Ross Lawley
6d68ad735c
Fixed validation for GenericReferences
...
Where the references haven't been dereferenced
2013-01-22 17:56:15 +00:00
Ross Lawley
c44b98a7e1
Updated changelog
2013-01-22 17:54:35 +00:00
Ross Lawley
445f9453c4
Fixed reverse delete rule with inheritance ( #197 )
2013-01-22 16:38:07 +00:00
Ross Lawley
3364e040c8
Ensure $maxDistance is always the last part of the query ( #179 )
2013-01-22 16:05:44 +00:00
Ross Lawley
692f00864d
Fixed inheritance and unique index creation ( #140 )
2013-01-22 15:16:58 +00:00
Ross Lawley
344dc64df8
Updated authors and changelog #163
2013-01-22 14:05:06 +00:00
Ross Lawley
473425a36a
Merge branch 'getlasterror' of https://github.com/helduel/mongoengine into 163
2013-01-22 13:55:06 +00:00
Ross Lawley
3ba58ebaae
Added Nicolas Trippar to AUTHORS #179
2013-01-22 13:39:53 +00:00
Ross Lawley
2c7b12c022
Added support for $maxDistance ( #179 )
2013-01-22 13:31:53 +00:00
lcya86
17eeeb7536
Update mongoengine/django/sessions.py
...
added the "get_decoded" method to the MongoSession class
2013-01-17 15:31:27 +08:00
Martin Alderete
de5fbfde2c
Merge branch 'validation-message'
2013-01-15 02:45:47 -03:00
Martin Alderete
f5d02e1b10
Fixed issue with choices validation when they are simple list/tuple,
...
after model.validate() did not get any error message.
Added test to ensure that model.validate() set the correct error
messages.
2013-01-15 02:40:15 -03:00
Ross Lawley
e508625935
Update docs/upgrade.rst
2013-01-14 16:37:40 +00:00
Ross Lawley
0b177ec4c1
Merge branch 'master' into 0.8
...
Conflicts:
mongoengine/queryset.py
tests/queryset/queryset.py
tests/test_document.py
2013-01-10 15:12:56 +00:00
Ross Lawley
87c965edd3
Fixing PY3.3 test cases
2013-01-10 11:08:07 +00:00
Ross Lawley
72dd9daa23
Fixing py3.3 tests
2013-01-09 16:16:48 +00:00
Ross Lawley
a68529fba8
Merge branch 'master' into 0.8
...
Conflicts:
tests/test_document.py
2013-01-09 13:36:17 +00:00
Ross Lawley
06681a453f
python 3.3 test fixes
2013-01-09 13:15:21 +00:00
Ross Lawley
5907dde4a8
Merge branch 'master' into 0.8
...
Conflicts:
.travis.yml
2013-01-09 08:52:24 +00:00
Ross Lawley
8e038dd563
Updated travis python-3.1 no longer supported
2013-01-09 08:51:45 +00:00
Ross Lawley
50905ab459
Test update
2013-01-09 08:41:03 +00:00
Nick Joyce and Nick Joyce
7bb9c7d47f
Ensure that the update actions are grouped rather than serial.
...
This is a performance update. When multiple properties of the same
entity have been deleted and modified, 2 calls to update the entity are
made, one {"$set": … } and another {"$unset": … }. This is 2 network
interface calls which is a performance killer (even at lan speeds).
Fixes : #210
2013-01-07 15:03:29 +00:00
Ross Lawley
5c45eee817
Whitespace
2013-01-04 16:28:26 +00:00
Ross Lawley
0f9e4ef352
Add mongoengine.png asset in the build
2013-01-04 16:27:58 +00:00
Ross Lawley
85173d188b
Add simplejson to python 2.5 build
2013-01-04 15:57:08 +00:00
Ross Lawley
d9ed33d1b1
Added python 3.3 support to travis
2013-01-04 14:33:08 +00:00
Ross Lawley
e6ac8cab53
Fixing python 2.5 support
2013-01-04 14:28:42 +00:00
Ross Lawley
f890ebd0f4
Merge branch 'master' into 0.8
2013-01-04 14:03:00 +00:00
Ross Lawley
e537369d98
Trying to get travis to build the 0.8 branch
2013-01-04 14:02:34 +00:00
Ross Lawley
9bbd8dbe62
Querysets now return clones and are no longer edit in place
...
Fixes #56
2013-01-04 09:41:08 +00:00
Ross Lawley
09a5f5c8f3
Added note for django and sites config issues
2013-01-03 12:56:42 +00:00
Ross Lawley
b9e0f52526
FileFields now copyable ( #198 )
2012-12-21 17:09:10 +00:00
Ross Lawley
1cdf71b647
Simplified Q objects
...
Removed QueryTreeTransformerVisitor (#98 ) (#171 )
2012-12-21 16:35:09 +00:00
Ross Lawley
3aff461039
Fix test discovery
2012-12-21 16:29:27 +00:00
Ross Lawley
bf74d7537c
Fix Django timezone support - update field for callable #151
2012-12-21 16:20:01 +00:00
Ross Lawley
0c2fb6807e
Added Aleksey Porfirov to AUTHORS #151
2012-12-21 12:14:32 +00:00
Ross Lawley
b9c9d127a2
Merge branch 'fix_use_django_tz' of https://github.com/lexqt/mongoengine into 0.8
...
Conflicts:
mongoengine/django/sessions.py
Closes #151
2012-12-21 12:10:54 +00:00
Ross Lawley
286beca6c5
Added Marcelo Anton to authors #152
2012-12-21 12:07:15 +00:00
Ross Lawley
3a1521a34e
Merge branch 'master' of https://github.com/mbanton/mongoengine into 0.8
2012-12-21 12:06:37 +00:00
Ross Lawley
c5b047d0cd
Fixed GridFSProxy __getattr__ behaviour ( #196 )
2012-12-21 11:55:05 +00:00
Ross Lawley
485b811bd0
Test case for embedded docs and 2d indexes #183
2012-12-19 17:05:27 +00:00
Ross Lawley
f335591045
Fix index build_spec #177
2012-12-19 16:55:14 +00:00
Ross Lawley
1c10f3020b
Added support for multiple slices
...
Also made slicing chainable. (#170 ) (#190 ) (#191 )
2012-12-19 14:56:15 +00:00
Ross Lawley
3074dad293
Test mixing only, include and exclude #191
2012-12-19 13:58:22 +00:00
Ross Lawley
42f506adc6
Updates to test suite
2012-12-19 13:58:04 +00:00
Ross Lawley
50b755db0c
Split out queryset tests
2012-12-19 13:35:37 +00:00
Ross Lawley
420c3e0073
Fixing for python2.5
...
closes #188
2012-12-19 12:51:42 +00:00
Ross Lawley
4a57fc33e4
Merge branch 'master' into 0.8
2012-12-19 12:38:04 +00:00
Ross Lawley
25cdf16cc0
Updated travis
2012-12-19 12:37:37 +00:00
Ross Lawley
7f732459a1
Updated tickets links as now default to MongoEngine/mongoengine
2012-12-19 12:34:02 +00:00
Ross Lawley
9cc02d4dbe
Dynamic fields are now validated on save
...
(MongoEngine/mongoengine#153 ) (MongoEngine/mongoengine#154 )
2012-12-19 12:32:06 +00:00
Ross Lawley
c528ac09d6
Fix merge for QNode checks
2012-12-19 12:29:46 +00:00
Ross Lawley
1a131ff120
Only allow QNode instances to be passed as query objects ( MongoEngine/mongoengine#199 )
2012-12-19 12:16:12 +00:00
Ross Lawley
accdd82970
Merge branch 'feature-saferfilter' of https://github.com/elasticsales/mongoengine into 0.8
2012-12-19 11:47:46 +00:00
Ross Lawley
3e8f02c64b
Merge sequence field changes
2012-12-19 11:39:19 +00:00
Ross Lawley
3425264077
Merge branch 'master' into 0.8
...
Conflicts:
AUTHORS
docs/changelog.rst
mongoengine/__init__.py
mongoengine/base.py
mongoengine/fields.py
python-mongoengine.spec
tests/test_document.py
tests/test_fields.py
tests/test_queryset.py
2012-12-19 11:35:49 +00:00
Stefan Wojcik
148f8b8a3a
Only allow QNode instances to be passed as query objects
2012-12-17 21:13:45 -08:00
Ross Lawley
74343841e4
Merge branch 'master' of github.com:MongoEngine/mongoengine
2012-12-10 15:17:05 +00:00
Ross Lawley
3b3738b36b
0.7.9
2012-12-10 15:16:31 +00:00
Ross Lawley
b15c3f6a3f
Update AUTHORS
...
Sorry Jorge!
2012-12-10 10:33:55 +00:00
Ross Lawley
2459f9b0aa
Merge pull request #195 from balboah/patch-1
...
Corrected user guide link in README
2012-12-10 02:24:02 -08:00
Johnny Bergström
6ff1bd9b3c
Corrected user guide link in README
2012-12-10 11:01:08 +01:00
Ross Lawley
1bc2d2ec37
Version Bump
2012-12-10 09:54:20 +00:00
Ross Lawley
d7fd6a4628
Merge branch 'ref_field_to_mongo_bug' of https://github.com/yakxxx/mongoengine
...
Conflicts:
AUTHORS
2012-12-10 09:20:20 +00:00
Ross Lawley
9236f365fa
Fix sequence fields in embedded documents ( MongoEngine/mongoengine#166 )
2012-12-10 09:11:31 +00:00
Ross Lawley
90d22c2a28
Update AUTHORS & Changelog ( MongoEngine/mongoengine#176 )
2012-12-10 08:50:21 +00:00
Ross Lawley
c9f6e6b62a
Merge branch 'order-by-chaining' of https://github.com/pteichman/mongoengine
2012-12-10 08:49:19 +00:00
Ross Lawley
260d9377f5
Updated Changelog
2012-12-10 08:26:42 +00:00
Ross Lawley
22d1ce6319
Merge branch 'master' of https://github.com/AdrianScott/mongoengine
2012-12-10 08:25:37 +00:00
Ross Lawley
6997e02476
Fixed EmailField so can add extra validation
...
(MongoEngine/mongoengine#173 , MongoEngine/mongoengine#174 , MongoEngine/mongoengine#187 )
2012-12-10 08:23:41 +00:00
Ross Lawley
155d79ff4d
Merge branch 'master' of https://github.com/shaunduncan/mongoengine
2012-12-10 08:22:25 +00:00
Ross Lawley
452cd125fa
Updated Changelog
2012-12-10 08:11:35 +00:00
Jorge Bastida
e62c35b040
Add more tests
2012-12-07 16:21:31 +00:00
Jorge Bastida
d5ec3c6a31
Add as_pymongo to __getitem__ and in_bulk
2012-12-07 15:59:09 +00:00
Jorge Bastida
ad983dc279
Implement _get_as_pymongo
2012-12-07 15:42:10 +00:00
Adrian Scott
bb15bf8d13
Update AUTHORS
...
added me (Adrian Scott, issues 180, 181)
2012-12-07 10:02:12 -05:00
Jorge Bastida
94adc207ad
First as_pymongo implementation
2012-12-07 11:20:27 +00:00
Shaun Duncan
376d1c97ab
EmailField should honor StringField validation as well
2012-12-04 13:08:49 -05:00
Adrian Scott
4fe87b40da
added comments
2012-11-29 21:49:54 -05:00
Adrian Scott
b10d76cf4b
split line to meet 79 char max line limit
2012-11-29 21:28:03 -05:00
Adrian Scott
3bdc9a2f09
session collection parameter; encoding optional
...
Added a parameter for the name of the session collection; Added the
option to not encode session_data, which is useful for expiring sessions
of users when a password is changed, etc.; these upgrades provided by
SocialVilla Inc.
2012-11-29 20:53:09 -05:00
Peter Teichman
9d52e18659
Don't freeze the current query state when calling .order_by()
...
This changes order_by() to eliminate its reference to
self._cursor. This meant that any parameters built by QuerySet
that followed an order_by() clause were ignored.
2012-11-27 10:55:55 -05:00
Ross Lawley
f6f7c12f0e
Added test case checking type with dbref=False
...
Ensures when dbref=False the data is stored as the same type
as the primary key of the item stored. MongoEngine/mongoengine#160
2012-11-27 14:37:13 +00:00
Ross Lawley
219b28c97b
Updated docs regarding 3598fe0fb4
...
Fixed db_alias and inherited Documents (MongoEngine/mongoengine#143 )
2012-11-27 14:04:57 +00:00
Ross Lawley
3598fe0fb4
Adding _collection to _cls
2012-11-27 14:02:50 +00:00
Ross Lawley
f9dd051ec9
Merged get_document fix
2012-11-27 14:02:50 +00:00
Ross Lawley
68e4a27aaf
Fixed handling for old style types
2012-11-27 14:02:50 +00:00
Ross Lawley
b849c719a8
Adding some debugging
2012-11-27 14:02:50 +00:00
Ross Lawley
59e7617e82
Trying to fix seesaw test on travis
2012-11-27 14:02:49 +00:00
Ross Lawley
b5e868655e
Updated travis.yml
2012-11-27 14:02:49 +00:00
Ross Lawley
027b3d36de
Fixed deprecation warning
2012-11-27 14:01:58 +00:00
Ross Lawley
653c4259ee
Fixed handling for old style types
2012-11-27 11:59:34 +00:00
Ross Lawley
9f5ab8149f
Adding some debugging
2012-11-27 11:06:55 +00:00
Ross Lawley
66c6d14f7a
Trying to fix seesaw test on travis
2012-11-27 10:50:22 +00:00
Ross Lawley
2c0fc142a3
Updated travis.yml
2012-11-26 21:04:06 +00:00
Ross Lawley
003454573c
Making django user sparse ( MongoEngine/mongoengine#128 )
2012-11-21 17:14:53 +00:00
Ross Lawley
aa5a9ff1f4
Documentation update for document errors ( MongoEngine/mongoengine#124 )
2012-11-21 17:03:32 +00:00
Ross Lawley
28ef54986d
Deprecated get_or_create ( MongoEngine/mongoengine#35 )
2012-11-21 16:54:27 +00:00
yak
0da2dfd191
addition to AUTHORS
2012-11-13 13:04:05 +01:00
yak
787fc1cd8b
bug fix for RefferenceField.to_mongo when dbref=False
2012-11-13 13:02:07 +01:00
Ross Lawley
dfdc0d92c3
Updated docs
2012-11-08 16:40:58 +00:00
Ross Lawley
f265915aa2
Updated inheritable objects created by upsert now contain _cls ( MongoEngine/mongoengine#118 )
2012-11-08 16:35:20 +00:00
helduel
4228d06934
Merge branch 'getlasterror' of github.com:helduel/mongoengine into getlasterror
...
Conflicts:
mongoengine/document.py
2012-11-08 16:41:18 +01:00
helduel
1a93b9b226
More precise "created" keyword argument signals
...
If a document has a user given id value, the post_save signal always got the
"created" keyword argument with False value (unless force_insert is True).
This patch uses the result of getlasterror to check whether the save was an
update or not.
2012-11-08 16:30:29 +01:00
Ross Lawley
363e50abbe
Updated documents with embedded documents can be created in a single operation ( MongoEngine/mongoengine#6 )
2012-11-08 14:46:56 +00:00
Ross Lawley
b8d53a6f0d
Added json serialisation support
...
- Added to_json and from_json to Document (MongoEngine/mongoengine#1 )
- Added to_json and from_json to QuerySet (MongoEngine/mongoengine#131 )
2012-11-08 12:04:14 +00:00
Ross Lawley
4b45c0cd14
Removed deprecation warning #55
2012-11-07 15:15:04 +00:00
Ross Lawley
e7c0da38c2
Better implementation for none - MongoEngine/mongoengine#127
2012-11-07 15:09:11 +00:00
Ross Lawley
8706fbe461
Updated index creation now tied to Document class (( MongoEngine/mongoengine#102 )
2012-11-07 15:04:45 +00:00
Ross Lawley
9ca96e4e17
Added none() to queryset ( MongoEngine/mongoengine#127 )
2012-11-07 13:51:02 +00:00
Ross Lawley
99fe1da345
Add value_decorator into SequenceField
...
Allows post processing of the calculated counter value.
2012-11-07 13:20:34 +00:00
Ross Lawley
1986e82783
Added clean method to documents for pre validation data cleaning ( MongoEngine/mongoengine#60 )
2012-11-07 12:12:28 +00:00
Ross Lawley
7073b9d395
Added validation and tests
2012-11-06 18:55:14 +00:00
Samuel Clay and Ross Lawley
f2049e9c18
Adding QuerySet(read_preference=pymongo.ReadPreference.X) and QuerySet().read_preference() method to override connection-level read_preference on a per-query basis.
2012-11-06 18:55:13 +00:00
Ross Lawley
f0f1308465
Updated changelog
2012-11-06 16:06:54 +00:00
Ross Lawley
7d90aa76ff
Add _instance to Embedded Documents
...
Fixes MongoEngine/mongoengine#139
2012-11-06 16:04:23 +00:00
Ross Lawley
3cc2c617fd
Merge branch 'master' into 0.8
...
Conflicts:
docs/changelog.rst
mongoengine/__init__.py
2012-11-06 14:28:55 +00:00
Ross Lawley
c31488add9
Version bump
2012-11-05 11:14:02 +00:00
Ross Lawley
3d5b6ae332
Inheritance is off by default ( MongoEngine/mongoengine#122 )
2012-10-22 19:29:26 +00:00
Marcelo Anton
59826c8cfd
This change in how the variable is declared DESCRIPTION corrects problems
...
when running the command ``python setup.py bdist_rpm``
2012-10-18 11:44:18 -03:00
Ross Lawley
6f29d12386
Changed the inheritance model to remove types
...
The inheritance model has changed, we no longer need to store an array of
`types` with the model we can just use the classname in `_cls`.
See the upgrade docs for information on how to upgrade
MongoEngine/mongoengine#148
2012-10-15 13:48:02 +00:00
Aleksey Porfirov
0a89899ad0
Fix django timezone support
2012-10-15 02:13:52 +04:00
Aleksey Porfirov
e4af0e361a
Add session expiration test (with django timezone support activated)
2012-10-15 02:11:01 +04:00
Ross Lawley
31ec7907b5
Fixing py3 compat
2012-10-01 20:01:43 +00:00
Ross Lawley
12f3f8c694
Added chaining regression test ( MongoEngine/mongoengine#135 )
2012-10-01 16:27:59 +00:00
Ross Lawley
79098e997e
Updated test
2012-10-01 16:20:48 +00:00
Ross Lawley
dc1849bad5
Unicode fix for repr ( MongoEngine/mongoengine#133 )
2012-10-01 16:15:25 +00:00
Ross Lawley
e2d826c412
Allow updates with match operators ( MongoEngine/mongoengine#144 )
2012-10-01 15:26:34 +00:00
Ross Lawley
e6d796832e
Unicode fix reverted but can have custom validator
...
MongoEngine/mongoengine#136
2012-10-01 14:48:53 +00:00
Ross Lawley
6f0a6df4f6
Fix loop
2012-10-01 14:23:05 +00:00
Ross Lawley
7a877a00d5
Updated URLField
...
handle unicode and custom validator (MongoEngine/mongoengine#136 )
2012-10-01 13:59:15 +00:00
Ross Lawley
e8604d100e
Added Garry Polley to contributors list
...
hmarr/mongoengine#573
2012-10-01 10:20:28 +00:00
Ross Lawley
1647441ce8
Merge branch 'master' of github.com:hmarr/mongoengine
2012-10-01 10:17:01 +00:00
Ross Lawley
9f8d6b3a00
Merge pull request #573 from garrypolley/master
...
Allow Django AuthenticationBackends to work with Django user
Thanks @garrypolley
2012-10-01 00:24:52 -07:00
Luis Araujo
0bfc96e459
exposing mongoengine.django module
2012-09-27 14:32:50 -03:00
Luis Araujo
3425574ddc
Adding, adjust and transplant more methods to auth.User model
2012-09-27 14:30:59 -03:00
Garry Polley
4b2ad25405
can now use AuthenticationBackends with permissions.
2012-09-27 10:21:05 -05:00
Ross Lawley
3ce163b1a0
Updates to the readme
2012-09-27 10:29:24 +00:00
Ross Lawley
7c1ee28f13
Added CONTRIBUTING.rst
2012-09-27 10:26:22 +00:00
Ross Lawley
2645e43da1
Merge branch 'master' into 0.7
2012-09-27 08:30:36 +00:00
Ross Lawley
59bfe551a3
Updated docs thanks @mitar
2012-09-27 08:29:49 +00:00
Luis Araujo
6a31736644
Initial support to Group and Permission. The /admin can't be exec login in MongoDB yet. Only SQLsDB (SQLite,...)
...
This code work with django-mongoadmin pluggin.
2012-09-26 14:43:59 -03:00
Ross Lawley
e2c78047b1
Moved injection of Exceptions to top level
2012-09-26 10:43:14 +00:00
Ross Lawley
6a4351e44f
Fixed reload issue with ReferenceField where dbref=False ( MongoEngine/mongoengine#138 )
2012-09-24 18:49:29 +00:00
Ross Lawley
adb60ef1ac
Improved import cache
2012-09-24 18:45:02 +00:00
Ross Lawley
3090adac04
Fixed objectId for DBRef
2012-09-24 11:37:54 +00:00
Ross Lawley
b9253d86cc
Updated travis.yml
2012-09-19 18:53:31 +00:00
Ross Lawley
ab4d4e6230
Fix ReferenceField dbref = False
2012-09-18 21:37:45 +00:00
Ross Lawley
7cd38c56c6
Merge branch 'master' of github.com:MongoEngine/mongoengine into 0.7
2012-09-14 10:19:04 +00:00
Ross Lawley
864053615b
Updated docs
2012-09-14 10:18:44 +00:00
Ross Lawley
db2366f112
Merge pull request #126 from mahmoudhossam/patch-1
...
Update docs/index.rst
2012-09-13 06:18:06 -07:00
Ross Lawley
4defc82192
Version Bump
2012-09-11 15:16:39 +00:00
Ross Lawley
5949970a95
Fixed index inheritance issues
...
firmed up testcases (MongoEngine/mongoengine#123 ) (MongoEngine/mongoengine#125 )
2012-09-11 15:14:37 +00:00
Mahmoud Hossam
0ea4abda81
Update docs/index.rst
...
Correct link for the source.
2012-09-11 12:38:40 +03:00
Ross Lawley
5c6035d636
Updated upgrade docs for BinaryFields
2012-09-11 08:56:32 +00:00
Ross Lawley
a2183e3dcc
Reverted EmbeddedDocuments meta handling.
...
You now can turn off inheritance (MongoEngine/mongoengine#119 )
2012-09-07 13:23:46 +01:00
Ross Lawley
99637151b5
Updated version
2012-09-05 10:24:25 +01:00
Ross Lawley
a8e787c120
Update index spec generation so its not destructive ( MongoEngine/mongoengine#113 )
2012-09-04 14:39:19 +01:00
Ross Lawley
53339c7c72
Version bump
2012-09-04 08:21:44 +01:00
Ross Lawley
3534bf7d70
Fixed index spec inheritance ( MongoEngine/mongoengine#111 )
2012-09-04 08:20:19 +01:00
Ross Lawley
1cf3989664
Updated setup.py
2012-09-04 08:10:56 +01:00
Ross Lawley
fd296918da
Fixing readme for pypi
2012-09-03 15:51:36 +01:00
Ross Lawley
8ad1f03dc5
Updated travis
2012-09-03 15:23:30 +01:00
Ross Lawley
fe7e17dbd5
Updated 0.7 branch
2012-09-03 15:21:52 +01:00
Ross Lawley
d582394a42
Merge branch 'master' into 0.7
2012-09-03 15:20:17 +01:00
Ross Lawley
02ef0df019
Updated travis.yml
2012-09-03 13:29:29 +01:00
Ross Lawley
0dfd6aa518
Updated travis.yml - now testing multiple pymongos
2012-09-03 13:22:08 +01:00
Ross Lawley
0b23bc9cf2
python 2.6.4 and lower cannot handle unicode keys passed to __init__ ( MongoEngine/mongoengine#101 )
2012-09-03 13:10:06 +01:00
Ross Lawley
f108c4288e
Updated queryset.delete so you can use with skip / limit ( MongoEngine/mongoengine#107 )
2012-09-03 12:53:50 +01:00
Ross Lawley
9b9696aefd
Updated index creation allows kwargs to be passed through refs ( MongoEngine/mongoengine#104 )
2012-09-03 12:29:58 +01:00
Ross Lawley
576e198ece
Fixed Q object merge edge case ( MongoEngine/mongoengine#109 )
2012-09-03 11:33:30 +01:00
Ross Lawley
52f85aab18
Merge branch 'master' of https://github.com/dimonb/mongoengine
...
Conflicts:
mongoengine/base.py
2012-09-03 11:00:41 +01:00
Dmitry Balabanov
ab60fd0490
sharded collection document reload testcase
2012-08-30 14:37:11 +04:00
Dmitry Balabanov
d79ae30f31
fix object reload with shard_key in meta
2012-08-30 14:20:53 +04:00
Dmitry Balabanov
f27debe7f9
Respect sharding key when delete object from collection
2012-08-30 12:40:44 +04:00
Ross Lawley
735e043ff6
RC Version Bump
2012-08-24 16:36:40 +01:00
Ross Lawley
6e7f2b73cf
Fix VERSION
2012-08-24 16:36:17 +01:00
Ross Lawley
d645ce9745
Updated version calculation
2012-08-24 15:08:37 +01:00
Ross Lawley
7c08c140da
Updated upgrade documents
2012-08-24 14:18:45 +01:00
Ross Lawley
81d402dc17
Fixing tests
2012-08-24 13:58:38 +01:00
Ross Lawley
966fa12358
Updated docs for map_reduce MongoEngine/mongoengine#67
2012-08-24 13:47:00 +01:00
Ross Lawley
87792e1921
Test checking can save if not included
...
ref: MongoEngine/mongoengine#70
2012-08-24 11:45:04 +01:00
Ross Lawley
4c8296acc6
Added testcase for MongoEngine/mongoengine#77
2012-08-24 11:02:32 +01:00
Ross Lawley
9989da07ed
Updated AUTHORS and changelog.rst
...
ref: MongoEngine/mongoenginei#62
2012-08-24 10:40:45 +01:00
Ross Lawley
1c5e6a3425
NotUniqueError gracefully replacing ambiguous OperationError when appropriate
2012-08-24 10:38:10 +01:00
Ross Lawley
eedf908770
Update name ref: MongoEngine/mongoengine#96
2012-08-24 09:33:56 +01:00
Ross Lawley
5c9ef41403
Updated AUTHORS ( MongoEngine/mongoengine#85 )
2012-08-24 09:32:15 +01:00
Ross Lawley
0bf2ad5b67
Use pk in ReferenceField fixes MongoEngine/mongoengine#85
2012-08-24 09:30:08 +01:00
Ross Lawley
a0e3f382cd
Added testcase ref MongoEngine/mongoengine#92
2012-08-24 09:20:14 +01:00
Ross Lawley
f09c39b5d7
Updated AUTHORS and chaneglog.rst
...
refs MongoEngine/mongoengine#92
2012-08-24 09:10:13 +01:00
Ross Lawley
89c67bf259
Merge branch 'master' of https://github.com/nikitinsm/mongoengine
2012-08-24 09:08:35 +01:00
Ross Lawley
ea666d4607
Updated AUTHORS and changelog.rst
...
Refs: MongoEngine/mongoengine#88
2012-08-24 09:00:39 +01:00
Ross Lawley
b8af154439
Merge pull request #88 from akolechkin/master
...
Fix for UnboundLocalError in composite index with pk field
2012-08-24 00:58:09 -07:00
Ross Lawley
f594ece32a
Fixed MRO issue in base.py MongoEngine/mongoengine#95
2012-08-24 08:54:54 +01:00
Ross Lawley
03beb6852a
Merge branch 'master' of https://github.com/elasticsales/mongoengine
2012-08-24 08:53:26 +01:00
Anthony Nemitz
ab9e9a3329
adding comment to the MRO test case
2012-08-23 18:09:51 -07:00
Anthony Nemitz
a4b09344af
test case for multiple inheritance raising MRO exception
2012-08-23 18:08:12 -07:00
Ross Lawley
8cb8aa392c
Updated tests
2012-08-23 17:08:23 +01:00
Ross Lawley
3255519792
Updating test
2012-08-23 16:31:22 +01:00
Sergey
7e64bb2503
Update mongoengine/fields.py
...
mistake
2012-08-23 14:32:27 +04:00
Sergey
86a78402c3
Update mongoengine/fields.py
2012-08-23 14:29:29 +04:00
Ross Lawley
ba276452fb
Fix tests
2012-08-23 11:09:07 +01:00
Ross Lawley
4ffa8d0124
Updated ReferenceField's to optionally store ObjectId strings.
...
This will become the default in 0.8 (MongoEngine/mongoengine#89 )
2012-08-23 11:02:38 +01:00
Anton Kolechkin
4bc5082681
fix for UnboundLocalError when use the composite index with primary key field
2012-08-23 11:58:04 +07:00
Anton Kolechkin
0e3c34e1da
test for composite index with pk, i used EmbeddedDocument because this is the only issue when it's needed
2012-08-23 11:57:22 +07:00
Ross Lawley
658b3784ae
Split out warning tests as they are order dependent
2012-08-22 09:44:32 +01:00
Ross Lawley
0526f577ff
Embedded Documents still can inherit fields MongoEngine/mongoengine#84
2012-08-22 09:27:18 +01:00
Ross Lawley
bb1b9bc1d3
Fixing api docs
2012-08-21 17:49:12 +01:00
Ross Lawley
b1eeb77ddc
Added FutureWarning - save will default to cascade=False in 0.8
2012-08-21 17:45:51 +01:00
Ross Lawley
999d4a7676
Fixed broken test
2012-08-21 17:29:38 +01:00
Ross Lawley
1b80193aac
Added example of indexing embedded fields
...
MongoEngine/mongoengine#75
2012-08-20 17:50:18 +01:00
Ross Lawley
be8d39a48c
Updated changelog / AUTHORS ( MongoEngine/mongoengine#80 )
2012-08-20 17:35:19 +01:00
Ross Lawley
a2f3d70f28
Merge pull request #80 from biszkoptwielki/master
...
Image resize fails when force flag is set. Fix & unittest
2012-08-20 09:34:05 -07:00
mikolaj
676a7bf712
Image resize fails when Froce flag is set
2012-08-18 17:27:22 +01:00
Ross Lawley
e990a6c70c
Improve unicode key handling for PY25
2012-08-17 16:13:45 +01:00
Ross Lawley
90fa0f6c4a
Add flexibility for fields handling bad data ( MongoEngine/mongoengine#78 )
2012-08-17 16:02:33 +01:00
Ross Lawley
22010d7d95
Updated benchmark stats
2012-08-17 15:04:09 +01:00
Ross Lawley
66279bd90f
Post refactor cleanups (ref: meta cleanups)
2012-08-17 11:58:57 +01:00
Ross Lawley
19da228855
Cleaned up the metaclasses for documents
...
Refactored and clarified intent and
tidied up
2012-08-17 11:53:46 +01:00
Ross Lawley
9e67941bad
Use weakref proxies in base lists / dicts ( MongoEngine/mongoengine#74 )
2012-08-14 10:34:17 +01:00
Ross Lawley
0454fc74e9
Updated changelog
2012-08-14 10:32:26 +01:00
Ross Lawley
2f6b1c7611
Improved queryset filtering ( hmarr/mongoengine#554 )
2012-08-13 17:29:33 +01:00
Ross Lawley
f00bed6058
Updated test cases for dynamic docs
2012-08-13 16:53:36 +01:00
Ross Lawley
529c522594
Updated changelog - fixed dynamic document issue
2012-08-13 16:42:51 +01:00
Ross Lawley
2bb9493fcf
Updated doc
2012-08-13 15:05:01 +01:00
Ross Lawley
839ed8a64a
Added test for abstract shard key
2012-08-13 14:57:35 +01:00
Manuel Hermann
500eb920e4
Use info from getlasterror whether a document has been updated or created.
2012-08-07 17:04:03 +02:00
Ross Lawley
017a31ffd0
Merge branch 'master' of github.com:MongoEngine/mongoengine
2012-08-07 13:24:27 +01:00
Ross Lawley
83b961c84d
Merge pull request #64 from alonho/abstract_shard_key
...
propagate the shard_key from abstract base classes' meta
2012-08-07 05:24:45 -07:00
Ross Lawley
fa07423ca5
Removing python 2.4 code
2012-08-07 13:10:56 +01:00
Ross Lawley
dd4af2df81
Python 2.5 and 3.1 support confirmed
2012-08-07 13:07:51 +01:00
Ross Lawley
44bd8cb85b
Merge branch 'master' of https://github.com/LaineHerron/mongoengine into 0.7
2012-08-07 10:45:01 +01:00
Ross Lawley
52d80ac23c
Merge branch 'master' into 0.7
...
Conflicts:
mongoengine/base.py
2012-08-07 10:41:49 +01:00
Alon Horev
43a5d73e14
propagate the shard_key from abstract base classes' meta
2012-08-07 09:12:39 +00:00
Ross Lawley
abc764951d
Merge branch 'master' into dev
...
Conflicts:
mongoengine/queryset.py
2012-08-07 10:07:54 +01:00
Ross Lawley
9cc6164026
Version bump
2012-08-07 10:05:01 +01:00
Ross Lawley
475488b9f2
Added support for distinct and db_alias ( MongoEngine/mongoengine#59 )
2012-08-07 10:04:05 +01:00
Ross Lawley
95b1783834
Updated changelog
2012-08-07 09:31:51 +01:00
Anthony Nemitz and Ross Lawley
12c8b5c0b9
Make chained querysets work if constraining the same fields.
...
Refs hmarr/mongoengine#554
2012-08-07 08:59:56 +01:00
Ross Lawley
f99b7a811b
Fixed error in Binary Field
2012-08-07 08:53:58 +01:00
Laine
0575abab23
mend
2012-08-03 15:09:50 -07:00
Laine
9eebcf7beb
Merge branch 'master' of https://github.com/LaineHerron/mongoengine
...
Conflicts:
tests/test_document.py
2012-08-03 15:08:21 -07:00
Laine
ed74477150
made compatable with python 2.5
2012-08-03 15:04:59 -07:00
Ross Lawley
2801b38c75
Version Bump
2012-08-03 14:36:31 +01:00
Ross Lawley
dc3fea875e
Merge branch 'master' of github.com:MongoEngine/mongoengine
2012-08-03 12:56:27 +01:00
Ross Lawley
aab8c2b687
Merge pull request #57 from filipd/patch-1
...
Added reference to the official repository in the README
2012-08-03 04:56:55 -07:00
Filip Dupanović
3577773af3
Added reference to the official repository
2012-08-03 14:55:18 +03:00
Laine
dd023edc0f
made compatable with python 2.5
2012-08-02 15:30:21 -07:00
Ross Lawley
8ac9e6dc19
Updated the documents
2012-08-02 14:11:02 +01:00
Ross Lawley
f45d4d781d
Updated test for py3.2
2012-08-02 09:26:33 +01:00
Ross Lawley
c95652d6a8
Updated AUTHORS
2012-08-02 09:23:15 +01:00
Ross Lawley
97b37f75d3
Travis - Not sure python 3.3 support is there yet
2012-08-02 09:22:12 +01:00
Ross Lawley
95dae48778
Fixing build
2012-08-02 09:20:41 +01:00
Ross Lawley
73635033bd
Updated travis config
2012-08-02 09:10:42 +01:00
Ross Lawley
c1619d2a62
Fixed image_field attributes regression
2012-08-02 08:47:38 +01:00
Ross Lawley
b87ef982f6
Merge branch 'master' into dev
2012-08-02 08:33:17 +01:00
Laine
91aa90ad4a
Added Python 3 support to MongoEngine
2012-08-01 17:21:48 -07:00
Ross Lawley
4b3cea9e78
Added Binary support to UUID ( MongoEngine/mongoengine#47 )
2012-08-01 16:03:33 +01:00
Ross Lawley
2420b5e937
Fixed MapField lookup for fields without declared lookups ( MongoEngine/mongoengine#46 )
2012-08-01 15:14:56 +01:00
Ross Lawley
f23a976bea
Added Tommi Komulainen to the contributors list
...
refs MongoEngine/mongoengine#48
2012-08-01 15:01:21 +01:00
Ross Lawley
4226cd08f1
Updated Changelog
2012-08-01 15:00:14 +01:00
Ross Lawley
7a230f1693
Merge branch 'master' of github.com:MongoEngine/mongoengine
2012-08-01 14:58:06 +01:00
Ross Lawley
a43d0d4612
Fixed BinaryField python value issue ( MongoEngine/mongoengine#48 )
2012-08-01 14:57:46 +01:00
Ross Lawley
78a40a0c70
Merge pull request #41 from wpjunior/patch-13
...
Small fix in SequenceField
2012-08-01 06:26:58 -07:00
Ross Lawley
2c69d8f0b0
Updated License
2012-08-01 13:54:24 +01:00
Ross Lawley
0018c38b83
Fixed queryset manager issue ( MongoEngine/mongoengine#52 )
2012-08-01 13:51:51 +01:00
Ross Lawley
8df81571fc
Fixed FileField comparision
...
Refs hmarr/mongoengine#547
2012-08-01 13:28:28 +01:00
Ross Lawley
d1add62a06
More updates
2012-08-01 13:11:36 +01:00
Ross Lawley
c419f3379a
Style changes
2012-07-30 15:43:53 +01:00
Ross Lawley
69d57209f7
Minor
2012-07-30 13:35:45 +01:00
Ross Lawley
7ca81d6fb8
Fixes
2012-07-30 13:00:42 +01:00
Ross Lawley
8a046bfa5d
Merge branch 'master' into dev
2012-07-27 09:29:10 +01:00
Ross Lawley
3628a7653c
Squashed commit of the following:
...
commit 48f988acd7
Merge: 6526923 1304f27
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Thu Jul 26 08:17:45 2012 -0700
Merge pull request #44 from faulkner/fix-notes
Proper syntax for RST notes (so they actually render).
commit 6526923345
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Thu Jul 26 16:00:32 2012 +0100
Fixed recursion loading bug in _get_changed_fields
fixes hmarr/mongoengine#548
commit 24fd1acce6
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Thu Jul 26 14:14:10 2012 +0100
Version bump
commit cbb9235dc5
Merge: 6459d4c 19ec2c9
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Wed Jul 25 15:12:34 2012 +0100
Merge branch 'master' of github.com:hmarr/mongoengine
commit 19ec2c9bc9
Merge: 3070e0b 601f0eb
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Wed Jul 25 07:12:07 2012 -0700
Merge pull request #545 from maxcountryman/patch-1
Correcting typo in DynamicField docstring
commit 6459d4c0b6
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Wed Jul 25 14:55:10 2012 +0100
Fixed issue with custom queryset manager expecting explict variable names
If using / expecting kwargs you have to call the queryset manager
explicitly.
commit 1304f2721f
Author: Chris Faulkner <thefaulkner@gmail.com >
Date: Tue Jul 24 14:06:43 2012 -0700
Proper syntax for RST notes (so they actually render).
commit 598ffd3e5c
Author: Ross Lawley <ross.lawley@gmail.com >
Date: Mon Jul 23 15:32:02 2012 +0100
Fixed documentation
commit 601f0eb168
Author: Max Countryman <maxc@me.com >
Date: Fri Jul 20 19:12:43 2012 -0700
Correcting typo in DynamicField docstring
2012-07-26 22:50:39 +01:00
Ross Lawley
48f988acd7
Merge pull request #44 from faulkner/fix-notes
...
Proper syntax for RST notes (so they actually render).
2012-07-26 08:17:45 -07:00
Ross Lawley
6526923345
Fixed recursion loading bug in _get_changed_fields
...
fixes hmarr/mongoengine#548
2012-07-26 16:00:32 +01:00
Ross Lawley
24fd1acce6
Version bump
2012-07-26 14:14:10 +01:00
Ross Lawley
cbb9235dc5
Merge branch 'master' of github.com:hmarr/mongoengine
2012-07-25 15:12:34 +01:00
Ross Lawley
19ec2c9bc9
Merge pull request #545 from maxcountryman/patch-1
...
Correcting typo in DynamicField docstring
2012-07-25 07:12:07 -07:00
Ross Lawley
6459d4c0b6
Fixed issue with custom queryset manager expecting explict variable names
...
If using / expecting kwargs you have to call the queryset manager
explicitly.
2012-07-25 14:55:10 +01:00
Chris Faulkner
1304f2721f
Proper syntax for RST notes (so they actually render).
2012-07-24 14:06:43 -07:00
Wilson Júnior
8bde0c0e53
Small fix in SequenceField
2012-07-23 12:31:47 -03:00
Ross Lawley
598ffd3e5c
Fixed documentation
2012-07-23 15:32:02 +01:00
Ross Lawley
1a4533a9cf
Minor perf update
2012-07-23 14:46:48 +01:00
Max Countryman
601f0eb168
Correcting typo in DynamicField docstring
2012-07-20 19:12:43 -07:00
Ross Lawley
3070e0bf5d
Fix for inheritance bug and db_alias
2012-07-20 10:34:08 +01:00
Ross Lawley
83c11a9834
Version bump
2012-07-19 16:12:21 +01:00
Ross Lawley
5c912b930e
Removed tests testing MongoDB not mongoengine
2012-07-19 16:03:29 +01:00
Ross Lawley
1b17fb0ae7
Updated validation error messages
...
refs hmarr/mongoengine#539
2012-07-19 15:04:12 +01:00
Ross Lawley
d83e67c121
Added support for null / zero / false values in item_frequencies
...
refs /MongoEngine/mongoengine#40
2012-07-19 12:08:07 +01:00
Ross Lawley
ae39ed94c9
Fixed cascade save edge case
...
refs MongoEngine/mongoengine#40
2012-07-19 11:52:26 +01:00
Ross Lawley
1e51180d42
Fixed geo index creation bug
...
fixes MongoEngine/mongoengine#36
2012-07-19 11:39:52 +01:00
Ross Lawley
87ba69d02e
Updated changelog
2012-07-19 10:35:37 +01:00
Ross Lawley
8879d5560b
Added support for args / kwargs and queryset_manager
...
Closes MongoEngine/mongoengine#37
2012-07-19 10:32:33 +01:00
Ross Lawley
c1621ee39c
Merge pull request #39 from wpjunior/tests2
...
More one test
2012-07-18 06:10:26 -07:00
Ross Lawley
b0aa98edb4
Deref list custom id fix
2012-07-18 14:09:24 +01:00
Wilson Júnior
a7a2fe0216
added more tests
2012-07-18 06:37:23 -03:00
Ross Lawley
8e50f5fa3c
Version bump
2012-07-11 16:59:24 +01:00
Ross Lawley
31793520bf
Updated changelog / AUTHORS
...
refs hmarr/mongoengine#529
2012-07-11 16:38:15 +01:00
Ross Lawley
0b6b0368c5
Merge branch 'master' of https://github.com/elasticsales/mongoengine
2012-07-11 16:36:35 +01:00
Ross Lawley
d1d30a9280
Added test and updated changelog
...
refs hmarr/mongoengine#527
2012-07-11 16:34:28 +01:00
Ross Lawley
420c6f2d1e
Merge branch 'patch-10' of https://github.com/wpjunior/mongoengine
2012-07-11 16:33:16 +01:00
Ross Lawley
34f06c4971
Updated changelog / AUTHORS
...
refs hmarr/mongoengine#524
2012-07-11 16:27:43 +01:00
Ross Lawley
9cc4bbd49d
Merge branch 'patch-1' of https://github.com/daevaorn/mongoengine
2012-07-11 16:26:50 +01:00
Ross Lawley
f66b312869
Updated api docs
...
fixes hmarr/mongoengine#526
2012-07-11 16:25:40 +01:00
Ross Lawley
2405ba8708
Updated Changelog / AUTHORS
...
refs hmarr/mongoengine#531
2012-07-11 16:11:13 +01:00
Ross Lawley
a91b6bff8b
Merge branch 'master' of https://github.com/agonzalezro/mongoengine
2012-07-11 16:09:33 +01:00
Ross Lawley
450dc11a68
Unicode fixes
...
refs hmarr/mongoengine#533 MongoEngine/mongoengine#32
2012-07-11 16:01:24 +01:00
Ross Lawley
1ce2f84ce5
Updated docs regarding fields
...
refs hmarr/mongoengine#535
2012-07-11 15:56:34 +01:00
Ross Lawley
f55b241cfa
Trying to bump travis
2012-07-11 15:45:31 +01:00
Ross Lawley
34d08ce8ef
Only dereference fields than need it
...
Fixes MongoEngine/mongoengine#31
2012-07-11 15:23:27 +01:00
Ross Lawley
4f5aa8c43b
Fixed config / added test
2012-07-11 14:29:35 +01:00
Ross Lawley
27b375060d
Updated changelog / AUTHORS
...
refs MongoEngine/mongoengine#32
2012-07-11 14:25:38 +01:00
Ross Lawley
cbfdc401f7
Merge pull request #32 from jaimeirurzun/master
...
Fix _transform_update to accept unicode fields
Thanks jaimeirurzun
2012-07-11 06:24:29 -07:00
Ross Lawley
b58bf3e0ce
Added support for addToSet and each
...
fixes MongoEngine/mongoengine#33
2012-07-11 14:22:50 +01:00
Jaime Irurzun
1fff7e9aca
Fix _transform_update to accept unicode fields
2012-07-10 10:40:14 +01:00
Álex González
494b981b13
Default value for direction
2012-07-02 10:05:25 +02:00
Álex González
dd93995bd0
Forced cast to list
2012-07-02 10:01:22 +02:00
Thomas Steinacher
b3bb4add9c
Fix error dict with nested validation.
2012-06-27 13:46:06 -07:00
Wilson Júnior
d305e71c27
Fixes for __ne operator in IntField and FloatField
2012-06-25 15:53:42 -03:00
Alexander Koshelev
0d92baa670
Exclude tests from installation
2012-06-24 03:08:49 +04:00
Ross Lawley
7a1b110f62
Added Tristan Escalada to authors
...
refs #hmarr/mongoengine#520
2012-06-23 22:24:09 +01:00
Ross Lawley
db8df057ce
Merge pull request #520 from tescalada/patch-1
...
documentation typo: inheritence
2012-06-23 14:23:07 -07:00
Ross Lawley
5d8ffded40
Fixed issue with embedded_docs and db_fields
...
Bumped version also
refs: hmarr/mongoengine#523
2012-06-23 22:19:02 +01:00
Ross Lawley
07f3e5356d
Updated changelog / AUTHORS
...
refs: hmarr/mongoengine#522
2012-06-23 21:46:31 +01:00
Ross Lawley
1ece62f960
Merge branch 'unicode-fix' of https://github.com/aparajita/mongoengine
2012-06-23 21:43:09 +01:00
Ross Lawley
056c604dc3
Fixes __repr__ modifying the cursor
...
Fixes MongoEngine/mongoengine#30
2012-06-22 16:22:27 +01:00
Aparajita Fishman
2d08eec093
Fix conversion of StringField value to unicode, replace outdated (str, unicode) check with unicode
2012-06-21 18:57:14 -07:00
Tristan Escalada
614b590551
documentation typo: inheritence
...
inheritence corrected to inheritance
only in the documentation, not in the code
2012-06-19 17:08:28 -03:00
Ross Lawley
6d90ce250a
Version bump
2012-06-19 17:01:28 +01:00
Ross Lawley
ea31846a19
Fixes scalar lookups for primary_key
...
fixes hmarr/mongoengine#519
2012-06-19 16:59:18 +01:00
Ross Lawley
e6317776c1
Fixes DBRef handling in _delta
...
refs: hmarr/mongoengine#518
2012-06-19 16:45:23 +01:00
Ross Lawley
efeaba39a4
Version bump
2012-06-19 14:34:16 +01:00
Ross Lawley
1a97dfd479
Better fix for .save() _delta issue with DbRefs
...
refs: hmarr/mongoengine#518
2012-06-19 14:05:53 +01:00
Ross Lawley
9fecf2b303
Fixed inconsistency handling None values field attrs
...
fixes hmarr/mongoengine#505
2012-06-19 11:22:12 +01:00
Ross Lawley
3d0d2f48ad
Fixed map_field embedded db_field bug
...
fixes hmarr/mongoengine#512
2012-06-19 10:57:43 +01:00
Ross Lawley
581605e0e2
Added test case for _delta
...
refs: hmarr/mongoengine#518
2012-06-19 10:08:56 +01:00
Ross Lawley
45d3a7f6ff
Updated Changelog
2012-06-19 09:49:55 +01:00
Ross Lawley
7ca2ea0766
Fixes .save _delta issue with DBRefs
...
Fixes hmarr/mongoengine#518
2012-06-19 09:49:22 +01:00
Ross Lawley
89220c142b
Fixed django test class
...
refs hmarr/mongoengine#506
2012-06-18 21:18:40 +01:00
Ross Lawley
c73ce3d220
Updated changelog / AUTHORS
...
refs hmarr/mongoengine#511
2012-06-18 21:13:55 +01:00
Ross Lawley
b0f127af4e
Merge branch 'master' of https://github.com/andreyfedoseev/mongoengine
2012-06-18 21:12:52 +01:00
Ross Lawley
766d54795f
Merge branch 'master' of https://github.com/MeirKriheli/mongoengine
...
Conflicts:
docs/changelog.rst
2012-06-18 21:10:14 +01:00
Ross Lawley
bd41c6eea4
Updated changelog & AUTHORS
...
refs hmarr/mongoengine#517
2012-06-18 21:04:41 +01:00
Ross Lawley
2435786713
Merge branch 'master' of https://github.com/shaunduncan/mongoengine
2012-06-18 20:55:32 +01:00
Ross Lawley
9e7ea64bd2
Fixed db_field load error
...
Fixes mongoengine/MongoEngine#45
2012-06-18 20:49:33 +01:00
Ross Lawley
89a6eee6af
Fixes cascading saves with filefields
...
fixes #24 #25
2012-06-18 16:45:14 +01:00
Shaun Duncan
2ec1476e50
Adding test case for self-referencing documents with cascade deletes
2012-06-16 11:05:23 -04:00
Shaun Duncan
2d9b581f34
Adding check if cascade delete is self-referencing. If so, prevent
...
recursing if there are no objects to evaluate
2012-06-15 15:42:19 -04:00
Harry Marr
5bb63f645b
Fix minor typo w/ FloatField
2012-06-08 19:24:10 +02:00
Meir Kriheli
a856c7cc37
Fix formatting of the docstring
2012-06-07 12:36:14 +03:00
Meir Kriheli
26db9d8a9d
Documentation for PULL reverse_delete_rule
2012-06-07 12:32:02 +03:00
Meir Kriheli
8060179f6d
Implement PULL reverse_delete_rule
2012-06-07 12:16:00 +03:00
Meir Kriheli
77ebd87fed
Test PULL reverse_delete_rule
2012-06-07 12:02:19 +03:00
Valentin Gorbunov and Valentin Gorbunov
e4bc92235d
test_save_max_recursion_not_hit_with_file_field added
2012-06-06 15:48:16 +04:00
Ross Lawley
27a4d83ce8
Remove comment - it was wrong
2012-05-29 17:32:41 +01:00
Ross Lawley
ece9b902f8
Setup.py cleanups
2012-05-29 17:32:14 +01:00
Ross Lawley
65a2f8a68b
Updated configs
2012-05-29 17:06:03 +01:00
Ross Lawley
9c212306b8
Updated setup / added datetime test
2012-05-29 16:24:25 +01:00
Ross Lawley
1fdc7ce6bb
Releasing Version 0.6.10
2012-05-23 08:58:43 +01:00
Andrey Fedoseev
0b22c140c5
Add sensible __eq__ method to EmbeddedDocument
2012-05-22 22:31:59 +06:00
Ross Lawley
944aa45459
Updated changelog
2012-05-21 15:21:45 +01:00
Ross Lawley
c9842ba13a
Fix base classes to return
...
fixes hmarr/mongoengine#507
2012-05-21 15:20:46 +01:00
Ross Lawley
8840680303
Promoted BaseDynamicField to DynamicField
...
closes mongoengine/mongoengine#22
2012-05-17 21:54:17 +01:00
Ross Lawley
376b9b1316
updated the readme
2012-05-17 21:14:25 +01:00
Ross Lawley
54bb1cb3d9
Updated travis settings and Readme
2012-05-17 16:59:50 +01:00
Ross Lawley
43468b474e
Adding travis support
2012-05-17 16:49:13 +01:00
Ross Lawley
28a957c684
Version bump
2012-05-14 12:43:00 +01:00
Ross Lawley
ec5ddbf391
Fixed sparse indexes with inheritance
...
fixes hmarr/mongoengine#497
2012-05-14 12:06:25 +01:00
Ross Lawley
bab186e195
Reverted document.delete auto gridfs delete
2012-05-14 12:02:07 +01:00
Ross Lawley
bc7e874476
Version 0.6.8
2012-05-09 20:53:18 +01:00
Ross Lawley
97114b5948
Fix for FileField losing ref without default
...
fixes hmarr/mongoengine#458
2012-05-09 20:50:11 +01:00
Ross Lawley
45e015d71d
Added test for keys with spaces
2012-05-09 20:49:34 +01:00
Ross Lawley
0ff6531953
Updated changelog
2012-05-09 15:39:34 +01:00
Ross Lawley
ba298c3cfc
Save can be used in assignment
2012-05-09 15:37:07 +01:00
Ross Lawley
0479bea40b
Cleaned up GridFS
...
refs hmarr/mongoengine#465
2012-05-09 15:35:28 +01:00
Ross Lawley
a536097804
Added support for pull operations on nested EmbeddedDocs
...
fixes mongoengine/mongoengine#16
2012-05-09 14:38:53 +01:00
Ross Lawley
bbefd0fdf9
Added example of bi directional delete rules + test
...
refs mongoengine/mongoengine#15
2012-05-09 13:54:33 +01:00
Ross Lawley
2aa8b04c21
Implemented Choices for GenericReferenceFields
...
Refs mongoengine/mongoengine#13
2012-05-09 13:21:53 +01:00
Ross Lawley
aeebdfec51
Implemented Choices for GenericEmbeddedDocuments
...
Refs mongoengine/mongoengine#13
2012-05-09 12:58:45 +01:00
Ross Lawley
debfcdf498
Updated docs re: required pymongo version
...
refs #472
2012-05-09 12:19:59 +01:00
Ross Lawley
5c4b33e8e6
Made note stronger re: race condition
...
Refs #478
2012-05-09 12:13:42 +01:00
Ross Lawley
eb54037b66
Added note that get_or_create contains a race condition
...
Refs #478
2012-05-09 12:08:00 +01:00
Ross Lawley
f48af8db3b
Django 1.4 first session save lost data
...
fixes #477
2012-05-09 12:00:05 +01:00
Ross Lawley
97c5b957dd
Updated docs regarding GridFS
...
refs #492
2012-05-09 11:39:30 +01:00
Ross Lawley
95e7397803
Merge branch 'master' of https://github.com/deignacio/mongoengine
2012-05-09 11:32:26 +01:00
Ross Lawley
43a989978a
Merge branch 'patch-8' of https://github.com/wpjunior/mongoengine
2012-05-09 11:21:54 +01:00
Ross Lawley
27734a7c26
Updated Author / changelog
2012-05-09 11:04:05 +01:00
Anthony Nemitz
dd786d6fc4
fix for #494
2012-05-09 02:54:08 -07:00
Ross Lawley
be1c28fc45
Updated changelog
2012-05-08 18:26:04 +01:00
Ross Lawley
20e41b3523
Make the user model extendable
2012-05-08 18:23:51 +01:00
David Ignacio
e07ecc5cf8
Cleanup referenced GridFS files when a document is deleted
...
Note that drop_collection is not modified since there is no
guarantee that a GridFS collection holds files for only one
Document class. Otherwise you could drop files for other fields
or documents accidentally.
2012-05-05 01:33:08 -04:00
Wilson Júnior
3360b72531
Small fixes for GenericReferenceField
2012-05-04 14:58:06 -03:00
Ross Lawley
233b13d670
Version bump
2012-05-01 12:03:33 +01:00
Ross Lawley
5bcbb4fdaa
Properly fixed indexing on _id for covered indexes
...
refs #4
2012-05-01 12:02:45 +01:00
Ross Lawley
dbe2f5f2b8
Updated setup.py
2012-05-01 11:48:57 +01:00
Ross Lawley
ca8b58d66d
Fixed indexing on _id for covered indexes
...
fixes #4
2012-05-01 11:27:37 +01:00
Ross Lawley
f80f0b416f
Updated changelog
2012-05-01 11:04:01 +01:00
Ross Lawley
d7765511ee
Invalid DB Data now raises an InvalidDocumentError
...
fixes #2
2012-05-01 11:03:23 +01:00
Ross Lawley
0240a09056
Cleaned up ValidationError Refs #459
2012-05-01 10:14:16 +01:00
Ross Lawley
ab15c4eec9
Merge branch 'master' of https://github.com/adamreeve/mongoengine into 459
2012-05-01 09:42:25 +01:00
Ross Lawley
4ce1ba81a6
Merge branch 'dev-disable-indexing' of https://github.com/colinhowe/mongoengine
...
Conflicts:
mongoengine/queryset.py
2012-05-01 09:37:01 +01:00
Ross Lawley
530440b333
Fixed replicaset_connection test
2012-05-01 09:14:38 +01:00
Ross Lawley
b80fda36af
Ensure session save is safe
2012-04-27 14:57:07 +01:00
Ross Lawley
42d24263ef
Updated changelog
2012-04-27 10:39:35 +01:00
Ross Lawley
1e2797e7ce
Merge branch 'master' of github.com:MongoEngine/mongoengine
2012-04-27 10:34:31 +01:00
Ross Lawley
f7075766fc
Merge pull request #11 from gregbanks/insert_kwargs
...
add parameters to QuerySet.insert to allow control of lower level behavior
2012-04-27 02:34:03 -07:00
Ross Lawley
5647ca70bb
Fix variable name bug
2012-04-27 09:52:57 +01:00
Ross Lawley
2b8aa6bafc
Fixes read_preference
...
Fixes mongoengine/mongoengine#10
2012-04-27 09:15:05 +01:00
Greg Banks
410443471c
TopLevelDocumentMetaClass sets _meta['index_opts'] not _meta['index_options']
2012-04-26 14:03:30 -07:00
Greg Banks
0bb9781b91
add "safe" and "write_options" parameters to QuerySet.insert similar to Document.save
2012-04-26 13:56:52 -07:00
Ross Lawley
2769d6d7ca
Updated Authors / Changelog
2012-04-25 12:43:17 +01:00
Ross Lawley
120b9433c2
Merge branch 'master' of https://github.com/swashbuckler/mongoengine
2012-04-25 12:40:53 +01:00
Ross Lawley
605092bd88
Updated change log / AUTHORS
...
Thanks Greg Banks
2012-04-25 12:36:37 +01:00
Ross Lawley
a4a8c94374
Merge branch 'master' of https://github.com/gregbanks/mongoengine
2012-04-25 12:31:11 +01:00
Ross Lawley
0e93f6c0db
Updated changelog
2012-04-25 12:26:31 +01:00
Ross Lawley
aa2add39ad
Version bump
2012-04-25 12:24:08 +01:00
Ross Lawley
a928047147
Fixing sessions for django 1.3 and django 1.4
2012-04-24 21:00:30 +01:00
Jona Andersen
c474ca0f13
Allow File-like objects to be stored.
...
No longer demands FileField be an actual instance of file, but instead
checks whether object has a 'read' attribute. Fixes read() on
GridFSProxy to return an empty string on read failure, or None if file
does not exist.
2012-04-22 13:49:18 +02:00
Ross Lawley
88dc64653e
Fix Django 1.3 auth
2012-04-18 16:41:09 +01:00
Ross Lawley
5f4b70f3a9
Version bump
2012-04-18 10:30:14 +01:00
Ross Lawley
51b429e5b0
Updated changelog
2012-04-18 10:28:54 +01:00
Ross Lawley
360624eb6e
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2012-04-18 10:28:06 +01:00
Ross Lawley
d9d2291837
Merge branch 'master' into dev
2012-04-18 10:27:57 +01:00
Ross Lawley
cbdf816232
Merge branch 'master' of github.com:hmarr/mongoengine
2012-04-18 10:23:02 +01:00
Ross Lawley
2d71eb8a18
Added support back for Django 1.3 as well as 1.4
2012-04-18 10:22:26 +01:00
Ross Lawley
64d2532ce9
Merge pull request #484 from dcrosta/replica-set-connection
...
refactor get_connection
Thanks @dcrosta
2012-04-18 00:51:30 -07:00
Dan Crosta
0376910f33
refactor get_connection
...
In the previous version, the requested ReadPreference was ignored in the
case that the user specified a MongoDB URI. This rearranges the code to
ensure that only those values which we explicitly parse out of the URI
override values set as keyword arguments.
This leaves open the possibility of conflicts between the URI and the
kwargs -- we should consider whether to raise an exception if, e.g.,
username is specified as a kwarg *and* in the URI.
2012-04-17 19:50:22 -04:00
Ross Lawley
6d503119a1
Merge pull request #482 from wpjunior/patch-7
...
Small fixes for ReferenceField
2012-04-16 05:25:42 -07:00
Wilson Júnior
bfae93e57e
small fixes for ReferenceField
2012-04-13 04:56:20 -03:00
Greg Banks
49a66ba81a
whoops, don't dereference all references as the first type encountered
2012-04-12 11:42:10 -07:00
Greg Banks
a1d43fecd9
fix for issue 473
2012-04-11 16:37:22 -07:00
Ross Lawley
d0e42a4798
Merge branch 'master' into dev
2012-03-27 01:47:48 +01:00
Ross Lawley
2a34358abc
Updated connection refs #474
2012-03-27 01:47:17 +01:00
Ross Lawley
fd2bb8ea45
Merge pull request #474 from samuelclay/patch-1
...
The port is defaulted in to conn_settings, so discard the port since hos...
2012-03-26 17:17:26 -07:00
Ross Lawley
98e5daa0e0
Added mostlystatic to the AUTHORS
2012-03-27 00:49:34 +01:00
Samuel Clay
ad2e119282
The port is defaulted in to conn_settings, so discard the port since hosts_or_uri must be used.
2012-03-26 16:48:37 -07:00
Ross Lawley
c20c30d8d1
Merge pull request #471 from mostlystatic/master
...
Simple fix to unknown connection alias error message
2012-03-26 16:47:46 -07:00
mostlystatic
66d215c9c1
Fix for unknown connection alias error message.
2012-03-24 20:01:40 +00:00
Ross Lawley
46e088d379
Merge branch 'master' into dev
2012-03-24 19:07:17 +00:00
Ross Lawley
bbdd15161a
0.6.3 release
2012-03-24 19:06:08 +00:00
Ross Lawley
ea9dc8cfb8
Merge branch 'master' of github.com:hmarr/mongoengine
2012-03-24 19:03:44 +00:00
Ross Lawley
6bd2ccc9bf
UPdated authors
2012-03-24 19:03:24 +00:00
Ross Lawley
56327c6b58
Merge pull request #470 from arbaal/master
...
Patches for Django 1.4 compability
2012-03-24 12:02:44 -07:00
Nils Hasenbanck
712e8a51e4
Merge branch 'master' of github.com:arbaal/mongoengine
...
Conflicts:
mongoengine/django/sessions.py
Signed-off-by: Nils Hasenbanck <nils@hasenbanck.de >
2012-03-24 19:49:02 +01:00
Nils Hasenbanck
421f324f9e
Fixed the exception when saving a new session
...
The session was not created for some reason. Now it is.
Signed-off-by: Nils Hasenbanck <nils@hasenbanck.de >
2012-03-24 19:43:01 +01:00
Nils Hasenbanck
8fe4a70299
Fixed the exception when saving a new session
...
Signed-off-by: Nils Hasenbanck <nils@hasenbanck.de >
2012-03-24 19:24:42 +01:00
Nils Hasenbanck
3af6d0dbfd
Replaces deprecated hasher with new django 1.4 hasher
...
This way we can even use the new hasher configuration
django 1.4 provides.
Signed-off-by: Nils Hasenbanck <nils@hasenbanck.de >
2012-03-24 11:08:00 +01:00
Nils Hasenbanck
e2bef076d3
Fixed the session backend for django 1.4
...
Signed-off-by: Nils Hasenbanck <nils@hasenbanck.de >
2012-03-24 11:07:37 +01:00
Ross Lawley
1bf9f28f4b
Merge branch 'master' into dev
2012-03-22 15:49:57 +00:00
Ross Lawley
f1e7b97a93
Updated changelog
2012-03-22 15:48:54 +00:00
Ross Lawley
8cfe13ad90
Merge branch 'master' into dev
2012-03-22 15:46:32 +00:00
Ross Lawley
0f420abc8e
Added test for listfields containing embedded documents
...
Added Adam to the authors - thanks for the patch
fixes #466
2012-03-22 15:44:22 +00:00
Ross Lawley
3b5b715567
Merge branch 'dev' of https://github.com/aparrish/mongoengine into 466
2012-03-22 15:32:45 +00:00
Adam Parrish
520051af25
preparing values in a ListField won't mangle embedded documents any more
2012-03-21 11:03:49 -07:00
Colin Howe
7e376b40bb
Add new meta option to Document: allow_index_creation.
...
Defaults to True. If set to False then MongoEngine will not ensure indexes exist
2012-03-19 20:27:08 +00:00
Ross Lawley
fd18a48608
Rst fix
2012-03-15 16:36:04 +00:00
Ross Lawley
64860c6287
Fix signals documentation
2012-03-15 16:27:31 +00:00
Ross Lawley
58635b24ba
Updated changelog
2012-03-12 10:35:02 +00:00
Ross Lawley
3ec9dfc108
Merge branch 'master' into dev
2012-03-12 10:33:08 +00:00
Ross Lawley
bd1572f11a
Fixed upgrade docs and instructions
2012-03-12 10:31:51 +00:00
Adam Reeve
540a0cc59c
List all document errors when raising a ValidationError
2012-03-09 22:20:59 +13:00
Adam Reeve
83eb4f6b16
Document the ValidationError class
2012-03-09 22:20:54 +13:00
Ross Lawley
95c58bd793
Merge branch 'master' into dev
2012-03-08 12:40:20 +00:00
Ross Lawley
65591c7727
Version Bump
2012-03-08 12:40:07 +00:00
Ross Lawley
737cbf5f60
Updated docs and added fix for _types and positional operator
...
Bumped version to 0.6.2
2012-03-08 12:39:25 +00:00
Ross Lawley
4c67cbb4b7
Updated upgrade docs. Reported issues with older pymongo and sharding
2012-03-06 12:31:14 +00:00
Ross Lawley
ed2cc2a60b
Adding Jacob Peddicord to Authors
2012-03-05 16:20:37 +00:00
Ross Lawley
859e9b3cc4
Version bump
2012-03-05 16:16:37 +00:00
Ross Lawley
c34e79fad9
Fix replicaset connection
2012-03-05 16:15:06 +00:00
Ross Lawley
82446d641e
Updated the spec
2012-03-05 14:28:33 +00:00
Ross Lawley
9451c9f331
Updated Readme - points to readthedocs
2012-03-05 13:14:36 +00:00
Ross Lawley
61411bb259
Doc updates
2012-03-05 12:26:44 +00:00
Ross Lawley
fcdb0eff8f
Added for read the docs
2012-03-05 12:21:53 +00:00
Ross Lawley
30d9347272
Updated readme
2012-03-05 12:20:59 +00:00
Ross Lawley
7564bbdee8
Fix docs
2012-03-05 11:43:54 +00:00
Ross Lawley
69251e5000
Updated docs
2012-03-05 11:35:12 +00:00
Ross Lawley
6ecdc7b59d
Added FutureWarning for inherited classes not declaring allow_inheritance
...
Refs #437
2012-03-05 11:25:13 +00:00
Ross Lawley
b7d0d8f0cc
Added warning to SortedListField
2012-03-05 11:20:22 +00:00
Ross Lawley
df52ed1162
Merge pull request #449 from kajic/uri-fix
...
Uri connection fix
2012-03-05 00:23:18 -08:00
Ross Lawley
aa6370dd5d
Merge pull request #448 from kajic/delta-fix
...
Thanks Kajic
2012-03-05 00:23:04 -08:00
Robert Kajic
c272b7901f
Fix for bug where changes to a a embedded document field are not recorded if the root document was just created+saved.
2012-03-02 15:35:15 +01:00
Robert Kajic
c61de6540a
Don't ignore kwargs for uri style connections
2012-03-02 15:33:54 +01:00
Robert Kajic
3c7bf50089
Make uri style connections use parameters not specified in the uri, as well as other keyword arguments
2012-03-02 15:33:38 +01:00
Ross Lawley
32fc4152a7
Enable covered indexes for simple documents.
...
Refs #444
2012-03-02 13:42:24 +00:00
Ross Lawley
bdf7187d5c
Added a limit to .get
2012-02-29 14:57:24 +00:00
Ross Lawley
1639576203
Bumped version
2012-02-29 12:05:47 +00:00
Ross Lawley
ae20c785ea
Updated docs
2012-02-29 12:04:43 +00:00
Ross Lawley
a2eb876f8c
No longer always upsert on save
...
closes #407
2012-02-29 11:39:10 +00:00
Ross Lawley
5a1eaa0a98
Updated new deref test
2012-02-29 11:23:43 +00:00
Ross Lawley
398fd4a548
Merge branch 'cleaned_dev' of https://github.com/Ankhbayar/mongoengine into test
2012-02-29 11:13:48 +00:00
Ross Lawley
44b9fb66e1
Updates must have an operation
...
Closes #387
2012-02-29 11:04:09 +00:00
Ross Lawley
2afa2171f9
Updated Changelog
2012-02-29 10:32:58 +00:00
Ross Lawley
1d7ea71c0d
DeReference is now used in a thread safe manner
...
No global / module instance is needed
Fixes #399
2012-02-29 10:31:33 +00:00
Ross Lawley
2a391f0f16
Raise an error if trying to perform a join
...
You can't join across reference fields, so raise an error
if someone tries to.
2012-02-29 10:10:51 +00:00
Ross Lawley
e9b8093dac
Updated changelog
2012-02-29 10:09:16 +00:00
Ross Lawley
6a229cfbc5
Updates can now take raw queries
2012-02-24 15:48:32 +00:00
Ross Lawley
3300f409ba
Update Authors and changelist
2012-02-24 10:34:51 +00:00
Ross Lawley
4466005363
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2012-02-24 10:29:06 +00:00
Ross Lawley
296ef5bddf
Merge branch 'geo2d' into dev
2012-02-24 10:28:52 +00:00
Ross Lawley
1f2a432e82
Merge pull request #439 from kajic/dev
...
register_connection bugfix
2012-02-24 02:12:55 -08:00
Robert Kajic
855933ab2a
uri_dict will have the 'database' key even if the database wasn't present in the uri. We must check it's value as well.
2012-02-24 00:07:57 +01:00
Ross Lawley
ece8d25187
Added replicaset connection support
...
Provide replicaSet=NAME in your connection.
fixes #423
2012-02-17 17:09:48 +00:00
Ross Lawley
589a720162
Updated changelog
2012-02-17 17:09:14 +00:00
Ross Lawley
a59b518cf2
Updates to imports for future pymongo 2.2
2012-02-17 11:18:25 +00:00
Ross Lawley
a15352a4f8
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2012-02-17 09:41:41 +00:00
Ross Lawley
df65f3fc3f
base no longer expects meta to have allow_inheritance
...
Closes #430 #431
2012-02-17 09:41:01 +00:00
Robert Kajic
734986c1b5
Documentation on geospatial indexes and how to create them explicitly
2012-02-16 10:41:47 +01:00
Анхбаяр Лхагвадорж
4a9ed5f2f2
Fix derefcence failed some case.
2012-02-02 18:33:12 +08:00
Ross Lawley
088f229865
Merge pull request #421 from linuxnow/integration/dev
...
Integration/dev
2012-02-01 04:05:06 -08:00
Pau Aliagas
cb2cb851e2
Fix formatting typo in changelog entry
2012-02-01 12:29:05 +01:00
Robert Kajic
d3962c4f7d
Added support for creating a geo2d index by prefixing the field name with a *
2012-01-31 22:31:24 +01:00
Ross Lawley
0301135f96
Added uri style connection handling
2012-01-30 10:24:45 +00:00
Ross Lawley
f59aa922ea
Added more .scalar tests
2012-01-27 12:20:47 +00:00
Ross Lawley
f60a49d6f6
Added .scalar to Queryset
...
More efficient than the previous .values_list implementation Ref #393
Reverted some of the .values_list code thats no longer needed.
Closes #415
2012-01-27 11:45:12 +00:00
Alice Bevan-McGregor and Ross Lawley
9a190eb00d
Added ability to have scalar return values instead of partially-populated Document instances.
2012-01-27 11:45:11 +00:00
Ross Lawley
6bad4bd415
Merge pull request #412 from faulkner/dict-update
...
Add dict.update() support to BaseDict.
Thx Faulkner :)
2012-01-16 03:32:45 -08:00
Chris Faulkner
50d9b0b796
Add dict.update() support to BaseDict.
2012-01-16 19:13:03 +08:00
Ross Lawley
12f884e3ac
Fixes typo in documents - thanks Shalabh
...
Closes #406
2012-01-16 09:11:00 +00:00
Ross Lawley
02b1aa7355
Added Ashwin Purohit to authors
...
Refs #410
2012-01-16 09:06:18 +00:00
Ross Lawley
90bfa608dd
Merge branch 'master' into dev
...
Conflicts:
docs/guide/signals.rst
python-mongoengine.spec
2012-01-16 09:05:38 +00:00
Ross Lawley
13f38b1c1d
Merge pull request #410 from purohit/master
...
typo fix
2012-01-16 01:04:29 -08:00
Ross Lawley
1afe7240f4
Fixed pagination limit / skip bug
...
fixes #398
2012-01-16 09:03:12 +00:00
Ashwin Purohit
7a41155178
typo in signals guide
2012-01-14 23:21:43 -08:00
Ross Lawley
39a20ea471
Merge pull request #403 from wpjunior/patch-5
...
Fixes for None values in QuerySet.values_list
2012-01-06 01:17:27 -08:00
Wilson Júnior
d8855a4a0f
fixes for None values in QuerySet.values_list
2012-01-05 13:35:32 -02:00
Ross Lawley
de8da78042
Update docs/changelog.rst
2012-01-03 20:42:24 +00:00
Ross Lawley
318b42dff2
Merge pull request #393 from wpjunior/queryset_select
...
select method in Queryset
2012-01-03 12:40:49 -08:00
Ross Lawley
0018674b62
Update docs/changelog.rst
2012-01-03 20:37:33 +00:00
Ross Lawley
82913e8d69
Merge pull request #396 from wpjunior/mixin_inheritance
...
Mixin inheritance
2012-01-03 12:36:45 -08:00
Wilson Júnior
0d867a108d
mixin inheritance
2011-12-19 11:31:42 -02:00
Wilson Júnior
5ee4b4a5ac
added count/len for ListResult
2011-12-16 11:49:20 -02:00
Wilson Júnior
62219d9648
changed name
2011-12-16 11:07:38 -02:00
Ross Lawley
6d9bfff19c
Started work on performance
...
Added an initial benchmark.py
Much more performant than 0.5.2 but still work todo.
2011-12-16 12:41:47 +00:00
Ross Lawley
7614b92197
Fixes super in BaseDict
...
Closes #395
2011-12-15 09:16:35 +00:00
Wilson Júnior
7c1afd0031
tests for db_field
2011-12-13 11:56:35 -02:00
Wilson Júnior
ca7b2371fb
added support for dereferences
2011-12-13 11:54:19 -02:00
Wilson Júnior
ed5fba6b0f
support for embedded fields
2011-12-13 07:46:49 -02:00
Ross Lawley
2b3b3bf652
Prelim PyPy support
...
Refs: #392
2011-12-12 16:26:10 +00:00
Ross Lawley
11daf706df
Added Sharding support
...
Added shard_key meta, so save() and update() passes shard keys
to the pymongo query. Also made shard key fields immutable.
Closes #388 and #389
2011-12-12 16:13:19 +00:00
Wilson Júnior
4a269eb2c4
added .select method
2011-12-12 13:39:37 -02:00
Ross Lawley
9b3899476c
Allow arbitary kwargs to be passed to pymongo
...
Fix pymongo 2.1+ check
Closes #390 closes #378
2011-12-12 09:14:50 +00:00
Ross Lawley
febb3d7e3d
Updated connection - so handles < pymongo 2.1
...
Updated docs
Refs #378
2011-12-09 08:39:50 -08:00
Ross Lawley
83e3c5c7d8
Updated connection for pymongo 2.1 support
...
closes #378
2011-12-09 08:26:39 -08:00
Ross Lawley
3c271845c9
Merge pull request #386 from wpjunior/patch-4
...
Custom db_alias support for MongoEngine DjangoSession
2011-12-07 07:56:43 -08:00
Wilson Júnior
56c4292164
added custom db_alias support for MongoEngine DjangoSession
2011-12-07 13:36:35 -02:00
Ross Lawley
2531ade3bb
Added David to Authors
...
refs #380
2011-12-07 03:01:56 -08:00
Ross Lawley
3e2f035400
Abstract documents can now declare indexes
...
fixes #380
2011-12-07 02:15:50 -08:00
Ross Lawley
e7bcb5e366
Updated docs and Authors list re: db_alias
2011-12-07 01:46:11 -08:00
Ross Lawley
112e921ce2
Syntax cleaning
2011-12-07 01:34:36 -08:00
Ross Lawley
216f15602b
Fixing test
2011-12-07 01:17:35 -08:00
Ross Lawley
fbe1901e65
Added some tests #384
2011-12-07 01:16:45 -08:00
Ross Lawley
8d2bc444bb
db_alias using in model, queryset, reference fields, derefrence.
2011-12-07 01:16:36 -08:00
Ross Lawley
cf4a45da11
Dynamic Documents now support string query lookups
2011-12-06 06:38:25 -08:00
Ross Lawley
be78209f94
Added test showing you can add index for dynamic docs
2011-12-05 04:44:40 -08:00
Ross Lawley
45b5bf73fe
Added Jan to the contributors list
...
Refs #135 #381
2011-12-05 04:17:51 -08:00
Ross Lawley
84f9e44b6c
Fixed GridFS documents can now be pickled
...
Refs #135 #381
2011-12-05 04:16:57 -08:00
Ross Lawley
700bc1b4bb
Multiple fields with the same db_field now raises Exception
...
Closes #329
2011-12-02 08:44:15 -08:00
Ross Lawley
beef2ede25
Merge pull request #313 from linuxnow/integration/master
...
add .gitignore and spec file to master
2011-12-02 08:15:24 -08:00
Ross Lawley
9bfc838029
Updated Docs and bumped version
...
Hopefully nearer 0.6
closes #368
2011-12-02 08:14:25 -08:00
Ross Lawley
e9d7353294
Updated with_id to raise Error if used with a filter.
...
Closes #365
2011-12-02 07:11:06 -08:00
Ross Lawley
a6948771d8
Added ReferencField handling with .distinct()
...
Closes #356
2011-12-02 06:47:58 -08:00
Ross Lawley
403977cd49
Added test for saving references unnecessarily.
...
Refs #359
2011-12-02 06:40:57 -08:00
Ross Lawley
153538cef9
Added test for saving false on dynamic documents
...
Refs #282
Closes #311
2011-12-02 06:34:51 -08:00
Ross Lawley
9f1196e982
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2011-12-02 06:04:12 -08:00
Ross Lawley
6419a8d09a
Fixed False BooleanField marked as unset by _delta()
...
Closes #282
2011-12-02 06:03:15 -08:00
Ross Lawley
769cee3d64
Merge pull request #379 from wpjunior/patch-3
...
Small improvements for item_frequencies
2011-12-02 05:19:49 -08:00
Wilson Júnior
fc460b775e
Small improvements for item_frequencies
2011-12-02 09:46:51 -02:00
Ross Lawley
ba59e498de
Custom __instancecheck__ no longer needed
...
Would be needed if calling a classmethod in __new__
but as we dont support reverse_delete_rules on embedded
documents there is no longer the need for it.
Refs #227
2011-12-02 02:52:06 -08:00
Ross Lawley
939bd2bb1f
Updated Documentation
2011-12-02 02:49:16 -08:00
Ross Lawley
e231f71b4a
EmbeddedDocuments dont support Reverse Delete Rules
...
Now throws an InvalidDocumentError
Refs #227
2011-12-02 02:46:55 -08:00
Ross Lawley
d06c5f036b
Cleaned up _transform_query
...
Refs #354 #376
2011-12-02 00:37:32 -08:00
Ross Lawley
071562d755
Fixed issue with dynamic documents deltas
...
Closes #377
2011-12-02 00:11:25 -08:00
Ross Lawley
391f659af1
Updated docs re: reverse delete rules
...
refs #254
2011-12-01 08:16:13 -08:00
Ross Lawley
8a44232bfc
Added Reverse Delete Rule support to ListFields
...
DictFields and MapFields aren't supported and raise an
InvalidDocument Error
Closes #254
2011-12-01 07:57:24 -08:00
Ross Lawley
9188f9bf62
Added custom cascade kwarg options
...
Allows the user to overwrite any default kwargs
Closes #295
2011-11-30 08:54:33 -08:00
Ross Lawley
0187a0e113
Handle updating and getting None values
...
Fixes updating a field to None, so it works in a similar
fashion as unsetting it via save()
Updated to handle null data from the database
Fixes #362
2011-11-30 08:12:44 -08:00
Ross Lawley
beacfae400
Removed use of _get_subclasses favouring get_document
...
_get_subclasses not actually required and causes issues
where Base Classes aren't imported but dont actually
need to be.
Fixes #271
2011-11-30 07:55:33 -08:00
Ross Lawley
fdc385ea33
Allow dynamic data to be deleted
...
Fixes #374
2011-11-30 03:06:46 -08:00
Ross Lawley
8b97808931
Added docs for elemMatch
2011-11-30 02:30:29 -08:00
Ross Lawley
179c4a10c8
Merge branch 'elemmatch' of https://github.com/wpjunior/mongoengine into elemmatch
2011-11-30 02:26:54 -08:00
Ross Lawley
6cef571bfb
Added Reverse option to SortedLists
...
Thanks Stephen Young for the patch
closes #364
2011-11-30 02:15:47 -08:00
Ross Lawley
fbe8b28b2e
Merge branch 'bug/318' into dev
...
Conflicts:
AUTHORS
2011-11-29 03:46:11 -08:00
Ross Lawley
a8d91a56bf
Fixes circular list references
...
The depth deduciton for _fields was over zealous
now max_depth is honoured/
Fixes #373
2011-11-29 03:43:49 -08:00
Ross Lawley
8d7291506e
Updated Authors
2011-11-29 01:44:23 -08:00
Wilson Júnior
d9005ac2fc
added elemMatch support
2011-11-28 14:45:57 -02:00
Ross Lawley
c775c0a80c
Circular references with EmbeddedDocumentField fix
...
Fixes #345
2011-11-28 08:23:28 -08:00
Ross Lawley
700e2cd93d
Updated changelog
2011-11-28 08:16:36 -08:00
Ross Lawley
083f00be84
Fixes passed in Constructor data for complexfields
...
Fixes #355
2011-11-28 08:09:17 -08:00
Ross Lawley
d00859ecfd
Updated changelog - DictField fix
2011-11-28 07:07:26 -08:00
Ross Lawley
4e73566c11
Updated changelog - optional cascasde saves
2011-11-28 07:06:56 -08:00
Ross Lawley
208a467b24
Added dictfield check for Int keys
...
Fixes #371
2011-11-28 07:05:54 -08:00
Ross Lawley
e1bb453f32
Configurable cascading saves
...
Updated cascading save logic - can now add meta or pass
cascade to save(). Also Cleaned up reset changed fields logic
as well, so less looping
Refs: #370 #349
2011-11-28 06:51:17 -08:00
Ross Lawley
4607b08be5
Making BaseDict / List more robust
2011-11-28 06:35:19 -08:00
Ross Lawley
aa5c776f3d
Copy and paste == brainless
2011-11-28 06:21:45 -08:00
Ross Lawley
0075c0a1e8
Gracefully handle when self.observer is absent
...
After pickles / deepcopying etc..
2011-11-28 05:54:03 -08:00
Ross Lawley
83fff80b0f
Cleaned up dereferencing
...
Dereferencing now respects max_depth, so should be more performant.
Reload is chainable and can be passed a max_depth for dereferencing
Added an Observer for ComplexBaseFields.
Refs #324 #323 #289
Closes #320
2011-11-25 08:36:47 -08:00
Ross Lawley
5e553ffaf7
Added reconnect back into the syntax
...
forces a disconnect.
2011-11-24 00:59:43 -08:00
Ross Lawley
6d185b7f7a
Merge pull request #366 from wpjunior/filemultidb
...
db_alias support for FileFields
2011-11-22 12:17:35 -08:00
Ross Lawley
e80144e9f2
Added multidb support
...
No change required to upgrade to multiple databases. Aliases are used
to describe the database and these can be manually registered or fall
through to a default alias using connect.
Made get_connection and get_db first class members of the connection class.
Old style _get_connection and _get_db still supported.
Refs: #84 #87 #93 #215
2011-11-22 08:01:14 -08:00
Wilson Júnior
fa4b820931
added support for db_alias in FileFields
2011-11-22 13:40:01 -02:00
Ross Lawley
63c5a4dd65
Fixes saving document schemas that have changed
...
Ensures that form defaults which are documents are
automatically marked as changed, so schemas can evolve
without migration issues.
[#360 ]
2011-11-22 07:34:08 -08:00
Adam Parrish and Ross Lawley
34646a414c
Fixes bug using positional operator to update embedded documents.
...
append_field wasn't getting reset to True in the loop, so fields wouldn't
get appended to clean_fields after str was encountered
[#354 ]
2011-11-11 01:10:00 -08:00
Ross Lawley
5aeee9deb2
Added PIL to spec file
...
[#314 ]
2011-11-04 01:55:46 -07:00
Ross Lawley
4c1509a62a
Updated docs re choices
...
[#284 ] [#314 ]
2011-11-04 01:54:30 -07:00
Ross Lawley
bfdaae944d
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2011-11-04 01:46:45 -07:00
Ross Lawley
4e44198bbd
Clean up of choices code and added tests
...
[#284 ] [#314 ]
2011-11-04 01:45:44 -07:00
Ross Lawley
a4e8177b76
Merge branch 'master' of https://github.com/KarimAllah/mongoengine into choices
...
Conflicts:
mongoengine/base.py
2011-11-04 01:34:58 -07:00
Ross Lawley
81bf5cb78b
Merge pull request #348 from wpjunior/patch-2
...
fixes for __repr__ documents
2011-11-02 04:54:08 -07:00
Wilson Júnior
a9fc476fb8
fixed errors in repr if unicode string is found
2011-11-02 09:38:26 -02:00
Ross Lawley
26f0c06624
Merge branch 'get_or_create_optizations' of https://github.com/wpjunior/mongoengine into get_or_create_optimizations
2011-11-01 02:21:37 -07:00
Ross Lawley
59bd72a888
Added tests for __repr__ fix
2011-11-01 02:15:31 -07:00
Ross Lawley
7d808b483e
Merge branch 'master' of https://github.com/grubberr/mongoengine into slice
2011-11-01 02:14:44 -07:00
Ross Lawley
3ee60affa9
Renamed schema for errors
...
Now is `to_dict()` as is more explicit
[refs #344 #328 ]
2011-11-01 01:51:58 -07:00
Ross Lawley
558b8123b5
Merge branch 'validation-schema' of https://github.com/n1k0/mongoengine into validation-schema
...
Conflicts:
mongoengine/base.py
mongoengine/fields.py
2011-11-01 01:45:32 -07:00
Ross Lawley
ecdf2ae5c7
Updated docs and Authors
2011-11-01 01:20:47 -07:00
Ross Lawley
aa9ed614ad
Merge branch 'master' of https://github.com/mjtamlyn/mongoengine into transform_update
2011-11-01 01:19:30 -07:00
Sergey Chvalyuk
1acdb880fc
fixing #336
2011-10-28 00:23:13 +03:00
Ross Lawley
7cd22aaf83
Removed debug print
2011-10-27 01:18:32 -07:00
Ross Lawley
5eb63cfa30
Updated changelog
2011-10-27 01:14:51 -07:00
Ross Lawley
5dc998ed52
Merge branch 'dev-bulkinsertsignal' of https://github.com/colinhowe/mongoengine into bulk
2011-10-27 01:13:59 -07:00
Wilson Júnior
8074094568
optimizations for get_or_create
2011-10-27 06:02:59 -02:00
Ross Lawley
56d1139d71
Added ImageField Support
...
Thanks to @wpjunior for the patch
Closes [#298 ]
2011-10-27 00:58:47 -07:00
Ross Lawley
165cdc8840
Updated changelog
2011-10-27 00:35:34 -07:00
Ross Lawley
c42aef74de
Merge pull request #326 from wpjunior/fixes-325
...
Fixes for #325 issue - Thanks @wpjunior
2011-10-27 00:33:36 -07:00
Ross Lawley
634e1f661f
Updated docs / upgrade notes
2011-10-27 00:31:48 -07:00
Nicolas Perriault
a1db437c42
got rid of assert for validation; ValidationError now extends AssertionError for BC purpose
2011-10-25 22:38:43 +02:00
Nicolas Perriault
b8e2bdc99f
simpler raising of ValidatioError
2011-10-25 20:04:39 +02:00
Ross Lawley
52d4ea7d78
Merge pull request #316 from wpjunior/fixes-315
...
Fixes for #315 issue
2011-10-25 03:47:19 -07:00
Nicolas Perriault
7db5335420
fixed URLField.validate() wasn't using BaseField.error() to raise a ValidationError
2011-10-25 10:53:58 +02:00
Nicolas Perriault
62480fe940
added a ValidatorError.schema properties which contains a dict representation of the whole validation error schema
2011-10-24 17:15:34 +02:00
Nicolas Perriault
3d7b30da77
first version of BC validation schema
2011-10-24 01:02:31 +02:00
Wilson Júnior
8e87648d53
added tests for get_or_create
2011-10-19 09:44:49 -02:00
Wilson Júnior
f842c90007
Merge branches 'master' and 'fixes-325' into fixes-325
2011-10-19 06:57:39 -02:00
Wilson Júnior
7f2b686ab5
added drop_collection for test
2011-10-19 06:55:05 -02:00
Wilson Júnior
b09c52fc7e
fixes for #325 issue
2011-10-19 06:30:41 -02:00
Pau Aliagas
202d6e414f
Update spec file
2011-10-13 20:29:36 +02:00
Wilson Júnior
3d817f145c
fixes for #315 issue
2011-10-12 18:28:40 -03:00
Pau Aliagas
181e191fee
Add some more files to ignore in .gitignore
2011-10-12 11:00:40 +02:00
Pau Aliagas
79ecf027dd
Add dependencies to spec file
...
Add spec file for rpm-based systems
2011-10-12 11:00:02 +02:00
Ross Lawley
76d771d20f
Merge branch 'master' into dev
...
Conflicts:
AUTHORS
docs/changelog.rst
mongoengine/base.py
2011-10-12 00:35:01 -07:00
Ross Lawley
4d5f602ee7
Bumped the version
2011-10-12 00:31:02 -07:00
Ross Lawley
452bbcc19b
Ported fix for Circular Reference bug to Master
...
Ready for a 0.5.2 release
2011-10-12 00:30:12 -07:00
Ross Lawley
24b8650026
Merge remote branch 'origin/dev' into dev
2011-10-12 00:18:37 -07:00
Ross Lawley
269e6e29d6
Updated Authors
2011-10-12 00:18:12 -07:00
Ross Lawley
c4b0002ddb
Fixed typo
2011-10-11 14:59:58 +02:00
Ross Lawley
53598781b8
Facepalm - mutable default argument in method..
2011-10-11 12:44:41 +02:00
Ross Lawley
0624cdd6e4
Fixes collection creation post drop_collection
...
Thanks to Julien Rebetez for the original patch
closes [#285 ]
2011-10-11 02:26:33 -07:00
Ross Lawley
5fb9d61d28
Merge remote branch 'origin/dev' into dev
2011-10-11 00:15:23 -07:00
Ross Lawley
7b1860d17b
Fixes tree based circular references
...
Thanks to jpfarias for the fix.
Also normalised the other circular checks.
2011-10-10 09:16:32 -07:00
Ross Lawley
8797565606
UPdated changelog
2011-10-08 08:13:53 -07:00
Ross Lawley
3d97c41fe9
Merge pull request #305 from linuxnow/integration/error_msgs
...
Add field name to validation exception messages
2011-10-08 08:13:40 -07:00
Ross Lawley
5edfeb2e29
Merge pull request #303 from linuxnow/integration/uuid
...
Add UUIDField
2011-10-08 08:08:45 -07:00
Ross Lawley
268908b3b2
Improvements to .get() efficiency
...
Closes #307 and #290
2011-10-08 08:06:23 -07:00
Ross Lawley
fb70b47acb
Merge branch 'master' into dev
...
Conflicts:
docs/changelog.rst
2011-10-08 07:33:52 -07:00
Ross Lawley
591149b1f0
Bumped version for 0.5.1 release
2011-10-08 07:31:24 -07:00
Ross Lawley
9a0a0b1bd4
Ported bugfix for circular references regression
...
Refs #294
2011-10-08 07:29:12 -07:00
Marc Tamlyn
219d316b49
Fix iteration on querysets.
...
If iteration of a queryset was interrupted (by a break, or a caught
error), the next iterator would start from the second element as the
cursor had already moved to the first. This is fixed by adding a rewind
into the __iter__ method.
2011-10-05 13:26:57 +01:00
Pau Aliagas
3aa2233b5d
Add field name to exception messages
2011-10-04 18:35:32 +02:00
Pau Aliagas
d59862ae6e
Merge remote-tracking branch 'upstream/dev' into integration/uuid
2011-10-04 16:02:58 +02:00
Pau Aliagas
0a03f9a31a
Add unit tests for UUIDField
2011-10-04 15:59:56 +02:00
Ross Lawley
dca135190a
Fixed changelog
2011-10-04 04:28:30 -07:00
Ross Lawley
aedcf3dc81
Merge branch 'listfield' into dev
...
Conflicts:
docs/changelog.rst
2011-10-04 04:28:04 -07:00
Ross Lawley
6961a9494f
Updates to ComplexFields
...
Required now means they cannot be empty [#302 ]
2011-10-04 04:26:56 -07:00
Ross Lawley
6d70ef1a08
Updated changelog [ #304 ]
2011-10-04 03:18:39 -07:00
Ross Lawley
e1fc15875d
Merge remote branch 'origin/dev' into dev
2011-10-04 03:10:10 -07:00
Ross Lawley
94ae1388b1
Updated .gitignore
2011-10-04 02:59:00 -07:00
Ross Lawley
17728d4e74
Added tests for empty lists
2011-10-04 02:57:50 -07:00
Ross Lawley
417aa743ca
Merge pull request #304 from linuxnow/integration/specfile
...
Add spec file for rpm-based distributions
2011-10-04 02:27:05 -07:00
Pau Aliagas
2f26f7a827
Add dependencies to spec file
...
Add spec file for rpm-based systems
2011-10-04 10:33:26 +02:00
Pau Aliagas
09f9c59b3d
Add some more files to ignore in .gitignore
2011-10-04 10:24:44 +02:00
Pau Aliagas
bec6805296
Add UUIDField
2011-10-04 10:20:41 +02:00
Pau Aliagas
d99c7c20cc
Don't allow empty lists when they are required
...
When using ListField, an empty list is added as the default value.
But when you mark this field as required, you expect it not to be empty,
so this patch makes sure that this is duly checked.
2011-10-04 10:12:21 +02:00
Ross Lawley
60b6ad3fcf
Added test for listfield fix
...
Added Pau Aliagas to authors
[closes #299 ]
2011-10-03 05:30:23 -07:00
Pau Aliagas and Ross Lawley
9b4d0f6450
Make sure that ListFields are not strings
2011-10-03 05:29:24 -07:00
Ross Lawley
1a2c74391c
Added grubberr to AUTHORS
...
[Refs #296 ]
2011-10-03 05:18:25 -07:00
Sergey Chvalyuk and Ross Lawley
08288e591c
small optimizing fix
2011-10-03 05:16:17 -07:00
Ross Lawley
823cf421fa
Fixes to circular references.
...
Removes infinite looping
refs #294
2011-09-29 14:07:30 -07:00
Ross Lawley
3799f27734
Merge branch 'master' of https://github.com/kuno/mongoengine into kuno
2011-09-28 01:51:06 -07:00
Ross Lawley
a7edd8602c
Added support for expando style dynamic documents.
...
Added two new classes: DynamicDocument and DynamicEmbeddedDocument
for handling expando style setting of attributes.
[closes #112 ]
2011-09-28 01:39:39 -07:00
Karim Allah
c081aca794
Fixing dereferencing when the dereferenced-document wasn't found.
2011-09-25 18:58:40 +02:00
kuno
2ca6648227
fixed indentation error in signal docs
2011-09-20 21:30:20 +08:00
Ross Lawley
1af54f93f5
Merge pull request #287 from wpjunior/fixitem_frequencies
...
Fix item_frequencies
2011-09-20 06:04:30 -07:00
Wilson Júnior
a9cacd2e06
fixed embedded null item_frequencies
2011-09-20 08:56:30 -03:00
Ross Lawley
f7fbb3d2f6
Relaxed field name checking on embedded documents
2011-09-20 03:45:11 -07:00
Karim Allah
adb7bbeea0
Being compatible with non-django style chioces
2011-09-18 19:48:33 +02:00
Ross Lawley
89c44cd14e
Added missing fields to the api documentation
2011-09-11 08:09:16 +01:00
Ross Lawley
8105bfd8b3
Updated changelog for 0.5 release
2011-09-10 13:00:34 +01:00
Harry Marr
de5b678da3
Merge branch 'dev'
2011-09-10 11:47:31 +01:00
Harry Marr
66c53f949b
Version bump to 0.5
2011-09-10 11:47:16 +01:00
Harry Marr
fdc34869ca
Merge branch 'dev'
2011-09-10 11:43:10 +01:00
Harry Marr
88b1a29719
Typo fix
2011-09-10 11:54:43 +02:00
Colin Howe
b91db87ae0
Pre and post bulk-insert signals
2011-09-09 19:17:40 +01:00
Ross Lawley
050542c29b
Added InvalidDocumentError
...
Ensures defined documents are valid and users don't override core methods
by accident.
fixes #275
2011-09-09 17:36:40 +01:00
Ross Lawley
60f0491f62
Updated changelog
2011-09-09 17:35:44 +01:00
Ross Lawley
b8a5791de6
Updates to documents
...
[#245 ]
2011-09-09 14:33:27 +01:00
Ross Lawley
2bc3948726
Merge remote branch 'wpjunior/genericembeddedfield' into genericembeddedfield
2011-09-09 06:07:07 -07:00
Ross Lawley
ee7d370751
Bumped the version
2011-09-09 05:52:43 -07:00
Ross Lawley
a6449a7b2c
Updates to documentation in prep for 0.5
2011-09-09 05:45:56 -07:00
Ross Lawley
bc9a09f52e
Document updates
2011-09-09 04:21:32 -07:00
Ross Lawley
1631788ab6
Now Raise an exception if subclasses are missing at querytime.
...
Beats returning None thanks to #aid for mentioning it on IRC
2011-08-24 13:37:39 +01:00
Ross Lawley
dd49d1d4bb
Added choices note to upgrade docs
2011-08-24 13:37:20 +01:00
Ross Lawley
d6c54c7c2a
Merge remote branch 'origin/dev' into dev
2011-08-18 08:32:33 +01:00
Ross Lawley
bda716ef9d
Improved update in test case for removing inheritance
2011-08-18 08:30:52 +01:00
Ross Lawley
d83d226396
Merge pull request #265 from dcrosta/keeptemp
...
Update docs for removal of keep_temp
2011-08-17 13:49:55 -07:00
Ross Lawley
91a0e499d9
Updated changelog and authors
...
Refs #263
2011-08-17 21:48:41 +01:00
Ross Lawley
f549d8c0bc
Merge pull request #263 from johnarnfield/dev
...
Added polygon support and unit tests
2011-08-17 13:46:40 -07:00
Dan Crosta
10c30f2224
remove keep_temp from map_reduce
...
fixes #258
2011-08-17 16:44:40 -04:00
Ross Lawley
11621c6f5a
Removed keeptemp from map_reduce as 0.5 requires pymongo 1.11
...
Closes #258
2011-08-17 21:38:46 +01:00
Ross Lawley
97ac7e5476
Remove old pymongo version checks
...
Closes #264
2011-08-17 21:34:35 +01:00
John Arnfield
b037fb3e21
Added version check to the polygon test to ensure server version >= 1.9
2011-08-17 21:23:40 +01:00
John Arnfield
10bc93dfa6
Commas help too :)
2011-08-17 20:15:47 +01:00
John Arnfield
88cb8f3963
left some conflict markers in - oops
2011-08-17 20:14:24 +01:00
John Arnfield
bd005575c4
Added geospatial polygon lookups & tests
2011-08-17 20:11:05 +01:00
John Arnfield
ca3b004921
Added tests for polygon queries
2011-08-17 20:04:38 +01:00
Ross Lawley
8071b23bff
Updated upgrade.rst
2011-08-17 14:17:06 +01:00
Ross Lawley
4bfed7e719
Merge pull request #259 from wpjunior/moretests
...
More tests for ListField(EmbeddedDocumentField
2011-08-17 06:14:52 -07:00
Wilson Júnior
b76590dc01
more tests for embedded lists
2011-08-17 09:32:04 -03:00
Wilson Júnior
4e462ffdb5
Merge branch 'dev' of git://github.com/hmarr/mongoengine into dev
2011-08-17 09:24:17 -03:00
Ross Lawley
3c8cbcfee7
Added tests for showing how to set embedded document indexes
...
refs #257
2011-08-16 16:50:50 +01:00
Ross Lawley
2a8543b3b7
Updated changelog
2011-08-16 15:26:11 +01:00
Ross Lawley
fd2e40d735
Updated changelog
2011-08-16 15:24:37 +01:00
Dan Crosta
5f05843403
prefer to use map-reduce to db.eval where possible
2011-08-16 08:20:06 -04:00
Ross Lawley
8bdb42827c
Updated AUTHORS
...
Thanks to all those that have contributed to MongoEngine
2011-08-16 11:33:41 +01:00
Ross Lawley
f6961ae9c1
Merge remote branch 'origin/dev' into dev
2011-08-16 10:33:38 +01:00
Ross Lawley
3f301f6b0f
Finishing touches to where implementation - thanks to dcrosta
...
Refs #242
2011-08-16 10:32:21 +01:00
Ross Lawley
89ad7ef1ab
Merge branch 'dev' into feature/where
2011-08-16 09:54:56 +01:00
Dan Crosta
81b69648ef
docstring for where()
2011-08-15 16:56:51 -04:00
Ross Lawley
672a5f190b
Merge pull request #255 from colinhowe/dev
...
check for presence of _geo_indices on field class before referencing
2011-08-15 06:39:38 -07:00
Wilson Júnior
447dd62c03
Merge branch 'dev' of git://github.com/hmarr/mongoengine into dev
2011-08-15 08:06:33 -03:00
Ross Lawley
c4db3b6cf2
Merge pull request #247 from spantaleev/double-save-fix
...
Prevent double saving when doing a forced insert.
2011-08-15 02:28:59 -07:00
Ross Lawley
2b1eb620fc
Merge pull request #253 from wpjunior/listreferences
...
Dereference fails (allow_inheritance = False)
2011-08-15 02:27:40 -07:00
Gareth Lloyd
4abfcb0188
check for presence of _geo_indices on field class before referencing
2011-08-15 10:01:48 +01:00
Ross Lawley
048826f6f0
Merge pull request #252 from wpjunior/djangotranslations
...
Django translation for auth.py
2011-08-15 01:15:28 -07:00
Wilson Júnior
5446476d99
Merge branch 'listreferences' of https://github.com/wpjunior/mongoengine into dev
2011-08-09 15:06:22 -03:00
Wilson Júnior
331f8b8ae7
fixes dereference for documents (allow_inheritance = False)
2011-08-09 14:31:26 -03:00
Wilson Júnior
63ee4fef1a
Translations for django/auth.py
2011-08-05 11:03:47 -03:00
John Arnfield
376ca717fa
Added support for within_polygon for spatial queries
2011-07-30 22:01:24 +01:00
Slavi Pantaleev
7913ed1841
Prevent double saving when doing a forced insert.
...
When doing save(force_insert=True) on a document missing an _id field,
the document was first getting inserted and then being saved a second
time.
Also refactatored the code a bit to make the intent
(insert/update/delta-update) cleaner, especially since
the `created` variable name was so confusing.
2011-07-30 00:52:37 +03:00
Ross Lawley
3f3f93b0fa
Fixing delta bug for dict fields
2011-07-29 15:48:29 +01:00
Wilson Júnior
6471c6e133
added GenericEmbeddedDocumentField
2011-07-27 08:45:15 -03:00
Ross Lawley
e3cbeb9df0
Merge pull request #243 from wpjunior/sequencefield_fixes
...
Sequencefield fixes
2011-07-22 06:34:43 -07:00
Wilson Júnior
130fb9916d
fixes for SequenceField
2011-07-22 10:19:41 -03:00
Ross Lawley
ac72722e57
Fixing bug setting a value that equates to false
2011-07-22 13:51:11 +01:00
Wilson Júnior
382b9a61a8
Merge branch 'dev' of git://github.com/hmarr/mongoengine into db_field_maps_tweaks
2011-07-22 09:25:59 -03:00
Dan Crosta
13afead9fb
add where() method to QuerySet
2011-07-20 12:41:20 -04:00
Ross Lawley
72aa191e70
Stop abstract classes being used in the document_registry
2011-07-20 11:58:13 +01:00
Ross Lawley
0d1804461d
Updated handling setting of object managers and inheritance
2011-07-19 22:12:09 +01:00
Wilson Júnior
273412fda1
tweaks for _db_field_map
2011-07-19 14:48:38 -03:00
Wilson Júnior
49764b51dc
tweaks for _db_field_map
2011-07-19 14:43:32 -03:00
Ross Lawley
5834fa840c
Tweaked SequenceField so that it doesn't increment on creation.
...
[refs #238 ]
2011-07-19 16:51:26 +01:00
Ross Lawley
5eb895b952
Merge remote branch 'origin/dev' into feature/sequence_field
2011-07-19 16:04:42 +01:00
Ross Lawley
d5fb3a9167
Merge pull request #240 from wpjunior/db_field_fixes
...
Awesome - scarily similar to the patch I started!
2011-07-19 07:37:57 -07:00
Wilson Júnior
cb324595ef
fixerrors
2011-07-19 07:36:35 -03:00
Wilson Júnior
fa39789bac
added SequenceField
2011-07-18 12:44:28 -03:00
Ross Lawley
bbd3a6961e
Fixed typo in tutorial
...
[closes #235 ] Thanks @mulka
2011-07-18 08:35:29 +01:00
Ross Lawley
6eb0387a78
Merge pull request #234 from dcrosta/get-or-404
...
Get or 404 now handles validation errors as well.
Thanks @dcrosta
2011-07-14 22:38:46 -07:00
Dan Crosta
b3ef67a544
get_document_or_404 raises 404 if given an invalid ObjectId
...
(and possibly on other errors, not sure what else raises
ValidationError)
2011-07-14 18:43:11 -04:00
Ross Lawley
72995a4b3e
Fixed changing default values to False for embedded items
2011-07-13 16:06:40 +01:00
Ross Lawley
7395ce5b22
Updating changelog
2011-07-13 16:05:17 +01:00
Ross Lawley
a4c197a83c
Added update() convenience method to a document
...
Thanks to @dcrosta for the initial code
[closes #229 ]
2011-07-13 14:15:46 +01:00
Ross Lawley
7a3412dc13
Added helper for reseting the index cache
2011-07-13 09:54:41 +01:00
Ross Lawley
e079924632
Added extra test for update / update_one
...
[closes #231 ]
2011-07-12 14:43:21 +01:00
Leo Honkanen
7f0d3638ba
guard against potentially destructive updates with no update parameters
2011-07-12 16:10:47 +03:00
Ross Lawley
cace665858
_delta checking didn't handle db_field_names at all
...
Fixed and added tests, thanks to @wpjunior and @iapain for initial test cases
[fixes #226 ]
2011-07-12 10:20:36 +01:00
Ross Lawley
2a8d001213
Improvements to indexes and efficiencies
...
Thanks to @dcrosta for the patches
closes #225
2011-07-11 17:02:23 +01:00
Ross Lawley
a2b0266e01
Merge branch 'dev' into indexpatches
2011-07-11 16:58:17 +01:00
Ross Lawley
1452d3fac5
Fixed item_frequency methods to handle null values
...
[fixes #216 ]
2011-07-11 16:50:31 +01:00
Ross Lawley
031c507fde
Merge pull request #224 from dcrosta/user-unique-index
...
User unique index - thanks to @dcrosta
2011-07-11 08:08:52 -07:00
Ross Lawley
0fb629e24c
Added cascading deletes
...
Also ensured that unsetting works when not the default value of a field
2011-07-11 16:01:48 +01:00
Dan Crosta
0847687fd1
don't create extra index on _types ( fix #222 )
...
mongodb will use an index that begins with _types to service queries
against _types, so the extra index is only needed if no other fields are
indexed in the document. to be safe, we explicitly check all indexes to
see if any begins with _types, and only then prevent creation of the
additional index on _types.
2011-07-11 10:15:55 -04:00
Dan Crosta
859de712b4
only create indexes on first collection access ( fix #223 )
2011-07-11 09:44:28 -04:00
Dan Crosta
803164a993
add unique index on User.username
2011-07-11 08:38:43 -04:00
Ross Lawley
147e33c3ca
Merge remote branch 'origin/dev' into dev
2011-07-11 09:23:38 +01:00
Ross Lawley
dc5a613bc7
Fixes conversion of null genericreferences in querysets
...
closes #211
2011-07-11 09:19:27 +01:00
Ross Lawley
16390c1dec
Merge pull request #217 from farazdagi/fix/typo-in-quering-db-docs
...
Fix/typo in quering db docs
2011-07-02 12:18:32 -07:00
Victor Farazdagi
4e6f91ae77
Typo fixed in "Quering The Db" guide.
2011-07-02 19:48:21 +04:00
Ross Lawley
556e620c7a
Fixes recursion error when resetting changed fields
...
Fixes #214 - thanks to wpjunior for the test case
2011-07-01 08:44:46 +01:00
Ross Lawley
8e1d701c27
Fixed infinite recursion bug in _geo_indices()
...
Fixes #213 Thanks to joshink for the bug report
2011-06-30 10:32:05 +01:00
Ross Lawley
d51d95a28e
Merge pull request #212 from zakj/dev
...
Added GridFSProxy.__nonzero__ - thanks to zakj for the fix
2011-06-30 01:57:00 -07:00
Zak Johnson
3d15a3b3e2
Add GridFSProxy.__nonzero__
...
For documents that do not have a value set for a given field, most field types
return None (or [] in the case of ListField). This makes it easy to test
whether a field has been set using "if doc.field". FileFields, on the other
hand, always return a GridFSProxy. Adding GridFSProxy.__nonzero__ which simply
checks for a grid_id allows the same boolean-test pattern for FileFields, as
well.
2011-06-29 20:48:39 -07:00
Ross Lawley
84e611b91e
Tweak to dereferencing
2011-06-27 16:46:39 +01:00
Ross Lawley
4036e9fe34
Moved private method to make class more readable
2011-06-27 13:17:41 +01:00
Ross Lawley
b039a2293f
Updated documentation about dereferencing
...
Refs #206
2011-06-27 12:42:26 +01:00
Ross Lawley
87f486c4f1
Added select_related() and refactored dereferencing
...
Added a dereference class to handle both select_related
/ recursive dereferencing and fetching dereference.
Refs #206
2011-06-27 12:25:49 +01:00
Ross Lawley
14be7ba2e2
Added support for the $ positional operator
...
closes #205
2011-06-21 14:50:11 +01:00
Ross Lawley
09c32a63ce
Fixes bug with appending post save - due to lists not being reset
2011-06-21 12:34:14 +01:00
Ross Lawley
08ba51f714
Updated geo_index checking to be recursive
...
Fixes #127 - Embedded Documents can declare geo indexes and have
them created automatically
2011-06-20 15:41:23 +01:00
Ross Lawley
e3cd398f70
Changed default collection naming
...
Also added upgrade text
2011-06-20 14:00:06 +01:00
Ross Lawley
f41c5217c6
Added a cleaner way to get collection names
...
Also handles dynamic collection naming - refs #180 .
2011-06-20 11:48:12 +01:00
Ross Lawley
1b0323bc22
Added document mixin support
...
For extendable / reusable documents
Fixes #204
2011-06-20 09:44:53 +01:00
Ross Lawley
e04e5f42ef
Added test inheriting document from another file works
...
Closes #28
2011-06-20 08:46:40 +01:00
Ross Lawley
c24bc77c17
Fixes depreciation warnings in Django Auth.
...
Closes #156
2011-06-17 15:07:27 +01:00
Ross Lawley
99f923e27f
Fixed queryset repr mid iteration
...
Closes #144
2011-06-17 15:04:07 +01:00
Ross Lawley
f3d265bbe0
Added to_dbref
...
Thanks to Ankhbayar for the initial code
Closes #202
2011-06-17 14:23:40 +01:00
Ross Lawley
5e7efcc8c2
Added 'hint' support, telling Mongo the proper index to use for the query.
...
Judicious use of hints can greatly improve query performance. When doing a query
on multiple fields (at least one of which is indexed) pass the indexed field as
a hint to the query. Hinting will not do anything if the corresponding index
does not exist. The last hint applied to this cursor takes precedence over all
others.
Closes #203
2011-06-17 12:43:28 +01:00
Ross Lawley
62c8823e64
Fixing requirements
...
Test requirements are not install requirements!
2011-06-17 11:39:53 +01:00
Ross Lawley
5cc9188c5b
Improved validation of (Generic)Reference fields
2011-06-16 15:25:09 +01:00
Ross Lawley
5e8604967c
Fixes for django Q query rendering bug
...
Ensures that the QNodes haven't already been processed
Fixes #185
2011-06-16 15:00:10 +01:00
Ross Lawley
cae3f3eeff
Fixes pickling issue with choice fields
...
Removes the dynamic __get_field_display partials before pickling
2011-06-16 12:50:45 +01:00
Ross Lawley
22a7ee5885
Handle old named (referenced) docs
...
Refs #199
2011-06-16 09:56:54 +01:00
Ross Lawley
658b85d327
Inconsistent setting of '_cls' broke inherited document referencing
...
Fixes #199
2011-06-15 16:51:49 +01:00
Ross Lawley
967e72723b
Added note to item_frequencies method.
...
Current implementation is relatively simple, for complex schemas
the user will have to write their own map reduce.
2011-06-15 14:55:38 +01:00
Ross Lawley
5411cc5573
Updated changelog
2011-06-15 11:30:10 +01:00
Ross Lawley
ffb3e8b7b9
Added help_text and verbose_name to fields
...
closes #192
2011-06-15 11:28:41 +01:00
Ross Lawley
94cad89e32
Fixes to item_frequencies - now handles path lookups
...
fixes #194
2011-06-15 11:22:27 +01:00
Ross Lawley
0338ac17b1
Fixes multiple assignment issue preventing saves
...
Thanks to @wpjunior for the ticket and testcase
Also fixed bug in BaseList
fixes #195
2011-06-15 08:57:46 +01:00
Ross Lawley
cb1dfdfac6
Fixes to signals
...
The sender is the class of the document not the instance - easier to
hook into
2011-06-14 16:56:04 +01:00
Ross Lawley
576db9ca88
Fixes DateTimeField handling of date objects.
...
Fixes #191
2011-06-14 15:09:03 +01:00
Ross Lawley
4c2b83d9ca
Remove errant __delete__ method
2011-06-14 15:00:26 +01:00
Ross Lawley
7cb24446ec
Merge remote branch 'origin/dev' into dev
2011-06-14 14:36:30 +01:00
Ross Lawley
0ed79a839d
Added delta tracking to documents.
...
All saves on exisiting items do set / unset operations only on changed fields.
* Note lists and dicts generally do set operations for things like pop() del[key]
As there is no easy map to unset and explicitly matches the new list / dict
fixes #18
2011-06-14 14:35:38 +01:00
Ross Lawley
e518c51de3
Merge pull request #193 from colinhowe/dev
...
Improved Validation warnings - Thanks Colin Howe
2011-06-13 12:52:31 -07:00
Ross Lawley
ea35fb1c54
More robust _present_fields additions
2011-06-13 12:49:09 +01:00
Ross Lawley
7b29378319
Fixes issue converting to mongo
2011-06-13 12:40:12 +01:00
Colin Howe
82fbe7128f
Improve validation warnings
2011-06-10 17:31:42 +01:00
Colin Howe
c1fadcac85
Merge remote branch 'upstream/dev' into dev
2011-06-10 16:50:44 +01:00
Ross Lawley
fd7f882011
Save no longer tramples over documents now sets or unsets explicit fields.
...
Fixes #146 , refs #18
Thanks @zhangcheng for the initial code
2011-06-09 16:09:06 +01:00
Ross Lawley
fb09fde209
Updated changelog
2011-06-09 14:26:52 +01:00
Ross Lawley
b2848b8519
Added ComplexDateTimeField
...
Thanks to @pelletier for the code.
Refs #187
2011-06-09 14:20:21 +01:00
Ross Lawley
417bb1b35d
Added regression test for #185
2011-06-09 12:15:36 +01:00
Ross Lawley
199b4eb860
Added django_tests and regression test for order_by
...
Refs #190
2011-06-09 12:08:37 +01:00
Ross Lawley
a66417e9d0
pep8 update
2011-06-09 11:31:47 +01:00
Ross Lawley
b9255f73c3
Updated docs
2011-06-09 11:28:57 +01:00
Ross Lawley
4b9bacf731
Added ComplexBaseField
...
* Handles the efficient lazy dereferencing of DBrefs.
* Handles complex nested values in ListFields and DictFields
* Allows for both strictly declared ListFields and DictFields where the embedded
value must be of a field type or no restrictions where the values can be a mix
of field types / values.
* Handles DBrefences of documents where allow_inheritance = False.
2011-06-09 11:25:24 +01:00
Ross Lawley
602d7dad00
Improvements to Abstract Base Classes
...
Added test example highlighting what to do to migrate a class from
complex (allows inheritance) to simple.
2011-06-08 17:10:26 +01:00
Ross Lawley
d32dd9ff62
Added _get_FIELD_display() for handy choice field display lookups
...
closes #188
2011-06-08 13:07:08 +01:00
Ross Lawley
28b7ef2304
Merge remote branch 'origin/dev' into dev
2011-06-08 13:06:47 +01:00
Ross Lawley
6dc2672dba
Updated changelog
2011-06-08 13:03:42 +01:00
Ross Lawley
9a949984ee
Merge pull request #189 from colinhowe/dev-notypesindex
...
Thanks @colinhowe!
2011-06-08 04:40:54 -07:00
Colin Howe
aa32d43014
Pydoc update
2011-06-08 12:36:32 +01:00
Colin Howe
4174918476
Merge in upstream dev
2011-06-08 12:33:36 +01:00
Colin Howe
6081fc6faf
Merge remote branch 'upstream/dev' into dev
2011-06-08 12:24:06 +01:00
Colin Howe
7c62fdc0b8
Allow for types to never be auto-prepended to indices
2011-06-08 12:20:58 +01:00
Ross Lawley
3c88faa889
Updated slave_okay syntax
...
Now inline with .timeout() and .snapshot().
Made them chainable - so its easier to use and added tests for cursor_args
2011-06-08 12:06:26 +01:00
Ross Lawley
d15f5ccbf4
Added _slave_okay to clone
2011-06-08 10:41:08 +01:00
Ross Lawley
cfcd77b193
Added tests displaying datetime behaviour.
...
Updated datetimefield documentation
2011-06-08 10:33:56 +01:00
Ross Lawley
525c25b9f6
Merge branch 'master' into dev
2011-06-07 15:15:06 +01:00
Ross Lawley
c059ad47f2
Updated django docs refs #186
2011-06-07 15:14:41 +01:00
Ross Lawley
48fd6c1344
Merge remote branch 'origin/master' into dev
2011-06-07 14:38:04 +01:00
Ross Lawley
1ee50922d9
Merge pull request #186 from kuno/master
...
fixed import path typo in django document
2011-06-07 06:37:34 -07:00
kuno
d63bf0abde
fixed import path typo in django documents
2011-06-07 20:19:29 +08:00
Ross Lawley
711db45c02
Changelist updated
2011-06-06 14:36:44 +01:00
Ross Lawley
55e20bda12
Added slave_okay syntax to querysets.
...
* slave_okay (optional): if True, allows this query to be run against a replica secondary.
2011-06-06 14:35:46 +01:00
Ross Lawley
56f00a64d7
Added bulk insert method.
...
Updated changelog and added tests / query_counter tests
2011-06-06 12:37:06 +01:00
Ross Lawley
8553022b0e
Merge branch 'dev' into feature/dev-indexes
2011-06-06 11:40:21 +01:00
Ross Lawley
74b5043ef9
Added signals documentation
2011-06-06 11:39:58 +01:00
Ross Lawley
0e45078116
Added Blinker signal support
2011-06-06 11:34:43 +01:00
Ross Lawley
7e87ed79ab
Merge branch 'feature/blinker_signals' into dev
2011-06-06 11:10:12 +01:00
Ross Lawley
7312db5c25
Updated docs / authors.
...
Thanks @jorgebastida for the awesome query_counter test context manager.
2011-06-06 11:07:27 +01:00
Ross Lawley
ec7effa0ef
Added DereferenceBaseField class
...
Handles the lazy dereferencing of all items in a list / dict.
Improves query efficiency by an order of magnitude.
2011-06-06 11:04:06 +01:00
Colin Howe
9a2cf206b2
Documentation for new-style indices
2011-05-29 13:38:54 +01:00
Colin Howe
40df08c74c
Fix QuerySet.ensure_index for new index specs
2011-05-29 13:33:00 +01:00
Ross Lawley
5d778648e6
Inital tests for dereferencing improvements
2011-05-27 11:33:40 +01:00
Colin Howe
1fa47206aa
Support for sparse indexes and omitting types from indexes
2011-05-26 19:39:41 +01:00
Colin Howe
6f5bd7b0b9
Test needs a connection...
2011-05-26 18:54:52 +01:00
Ross Lawley
c903af032f
Added inline_map_reduce functionality
...
Also added map_reduce method for calculating item_frequencies
Closes #183
2011-05-26 15:44:43 +01:00
Ross Lawley
9dd3504765
Updated changelog
2011-05-26 11:56:56 +01:00
Ross Lawley
97a1310344
Tweakin test
2011-05-26 11:11:00 +01:00
Alistair Roche
bf6f03a412
Improved MapFields setting
2011-05-25 17:25:39 +01:00
Ross Lawley
5ab13518db
Added test confirming order_by reference field doesnt work
2011-05-25 13:50:52 +01:00
Ross Lawley
eb892241ee
Added regression test for editting embedded documents
...
Closes #35
2011-05-25 13:31:01 +01:00
Ross Lawley
fac3f038a8
Added regression test for issue with unset and pop
...
Closes #118
2011-05-25 12:20:56 +01:00
Ross Lawley
b1cdd1eb26
Updated docs regarding ReferenceFields
...
Closes #149
2011-05-25 12:01:41 +01:00
Ross Lawley
60c8254f58
Tweaks to item_frequencies
...
Updated to use a ternary statement and added tests
Refs #124 #122
Thanks to @nickvlku for the code.
2011-05-25 11:10:42 +01:00
Ross Lawley
2ce70448b0
Merge branch 'dev' into pull_124
2011-05-25 09:54:56 +01:00
Ross Lawley
3861103585
Updated connection exception to provide more info on the cause.
...
Fixes #178
2011-05-25 09:36:25 +01:00
Ross Lawley
0708d1bedc
Run all tests...
2011-05-25 09:34:50 +01:00
Ross Lawley
c3a8840435
Blinker signals added
2011-05-24 20:27:19 +01:00
Ross Lawley
3246cf8bdd
Merge pull request #177 from sbook/feature/update_lists
...
Added the ability to update individual items in ListFields.
Example:
Message.objects(pk=12).update(set__comments__5__body="Testing 123")
2011-05-24 06:13:10 -07:00
Ross Lawley
7ecf84395a
Improved DictFields
...
Allow searching multiple levels deep in DictFields
Allow DictField entries containing strings to use matching operators
Thanks again to @theojulien for the initial code #108
2011-05-24 14:07:58 +01:00
Ross Lawley
32bab13a8a
Added MapField, similar to DictField
...
Similar to DictField except the value of each entry is always of a certain
(declared) field type.
Thanks again to @theojulienne for the code #108
2011-05-24 12:50:48 +01:00
Ross Lawley
088c40f9f2
Added Abstract Base Classes
...
Thanks to @theojulienne for the code :) #108
2011-05-24 12:30:12 +01:00
Alistair Roche
305fd4b232
Fixed whitespace
2011-05-24 11:44:43 +01:00
Alistair Roche
fe5111743d
Merge branch 'dev' into feature/update_lists
...
Conflicts:
mongoengine/queryset.py
2011-05-24 11:33:44 +01:00
Alistair Roche
8427877bd2
Merge remote branch 'upstream/dev' into dev
2011-05-24 11:32:23 +01:00
Alistair Roche
118c0deb7a
Fixed list-indexing syntax; created tests.
2011-05-24 11:31:44 +01:00
Ross Lawley
1126c85903
Added Custom Objects Managers
...
Managers can now be directly declared in a Document eg::
```python
class CustomQuerySetManager(QuerySetManager):
@staticmethod
def get_queryset(doc_cls, queryset):
return queryset(is_published=True)
class Post(Document):
is_published = BooleanField(default=False)
published = CustomQuerySetManager()
```
Refactored the name of the `_manager_func` to `get_queryset` to mark it as
part the public API. If declaring a Manager with a get_queryset method, it
should be a staticmethod, that accepts the document_class and the queryset.
Note - you can still use decorators in fact in the example below,
we effectively do the same thing as the first example and is much less verbose.
```python
class Post(Document):
is_published = BooleanField(default=False)
@queryset_manager
def published(doc_cls, queryset):
return queryset(is_published=True)
```
Thanks to @theojulienne for the initial impetus and code sample #108
2011-05-24 11:26:46 +01:00
Alistair Roche
13935fc335
Merge branch 'dev' into feature/update_lists
2011-05-24 08:58:38 +01:00
Alistair Roche
36034ee15f
'set__comments__0__body="asdf"' syntax works
2011-05-23 18:27:01 +01:00
Ross Lawley
1b72ea9cc1
Fixed detection of unique=True in embedded documents.
...
Added some more test cases - thanks to @heyman for the initial
test case.
Closes #172
Refs #171
2011-05-20 16:09:03 +01:00
Ross Lawley
04953351f1
Merge branch 'feature/slicing_fields' into dev
2011-05-20 14:18:48 +01:00
Ross Lawley
07e71d9ce9
Regression test for collection names an primary ordering
...
Closes #91
2011-05-20 14:18:16 +01:00
Ross Lawley
5f53cda3ab
Added regression test for #94
2011-05-20 10:55:01 +01:00
Ross Lawley
9260ff9e83
Updated docs and added a NotRegistered exception
...
For handling GenericReferences that reference documents that haven't
been imported.
Closes #170
2011-05-20 10:22:22 +01:00
Ross Lawley
08d1689268
Updated to handle the converntional api style for slicing a field
...
Added testcase to demonstrate embedded slicing as well.
Refs #167
2011-05-20 09:47:41 +01:00
Ross Lawley
40b69baa29
Implementing Write Concern
...
Added write_options dict to save, update, update_one and get_or_create.
Thanks to justquick for the initial ticket and code.
Refs #132
2011-05-19 16:49:00 +01:00
Ross Lawley
b3251818cc
Added regression test for custom queryset ordering
...
Closes #126
2011-05-19 13:04:14 +01:00
Ross Lawley
da8a057ede
Added test showing documents can be pickled
...
Refs #135
2011-05-19 12:41:38 +01:00
Ross Lawley
efba9ef52a
Merge remote branch 'srackham/gridfs-read-seek' into gridfs-read-seek
2011-05-19 10:14:51 +01:00
Ross Lawley
fb61c9a765
Regression test for mysterious uniqueness constraint when inserting into mongoengine
...
Closes #143 Thanks to tfausak for the test case.
2011-05-19 09:55:34 +01:00
Ross Lawley
95c2643f63
Added test showing primary=True behaviour.
...
If you set a field as primary, then unexpected behaviour can occur.
You won't create a duplicate but you will update an existing document.
Closes #138
2011-05-18 20:31:28 +01:00
Ross Lawley
fc2aff342b
Unique indexes are created before user declared indexes
...
This ensures that indexes are created with the unique flag, if a user
declares the index, that would automatically be declared by the `unique_indexes`
logic.
Thanks to btubbs for the test case.
Fixes #129
2011-05-18 17:37:41 +01:00
Ross Lawley
371dbf009f
Updated QuerySet to allow more granular fields control.
...
Added a fields method and tests showing the retrival of subranges of
List Fields.
Refs #167
2011-05-18 16:39:19 +01:00
Ross Lawley
5d5a84dbcf
Spacing issue cleaned up
2011-05-18 16:24:35 +01:00
Ross Lawley
7526272f84
Added test example of updating an embedded field
...
Closes #139
2011-05-18 12:27:33 +01:00
Ross Lawley
5cbc76ea81
Pep8
2011-05-18 12:26:51 +01:00
Ross Lawley
7ba40062d3
Fixes ordering with custom db field names
...
Closes #125
2011-05-18 12:18:33 +01:00
Ross Lawley
1781c4638b
Changed how the connection identity key is made
...
Uses the current thread identity as well as the process idenity to form
the key.
Fixes #151
2011-05-18 11:41:23 +01:00
Ross Lawley
1a049ee49d
Added regression test case for mongoengine/issues/155
2011-05-18 11:06:14 +01:00
Ross Lawley
31521ccff5
Added queryset clone support and tests, thanks to hensom
...
Fixes #130
2011-05-18 10:30:07 +01:00
Ross Lawley
e3b4563c2b
Merge remote branch 'hensom/master' into dev
2011-05-18 10:06:16 +01:00
Ross Lawley
c3f5ed0e0e
Merge branch 'master' into dev
2011-05-18 10:06:02 +01:00
Ross Lawley
378b52321b
Merge commit '18baa2dd7a4e909169b694cb6ec36214c5a51506'
2011-05-18 09:17:05 +01:00
Ross Lawley
98436f271e
Merge branch 'master' into dev
2011-05-18 08:13:58 +01:00
Ross Lawley
a76008e440
Merge pull request #164 from glyphobet/master
...
spherical geospatial operators.
Thanks again to glyphobet
2011-05-16 08:18:22 -07:00
Matt Chisholm
6cf0cf9e7d
slight reordering of test code for clarity
2011-05-10 12:31:31 +02:00
Matt Chisholm
608f08c267
Implement spherical geospatial query operators & unit tests
...
fixes https://github.com/hmarr/mongoengine/issues/163
2011-05-10 12:28:56 +02:00
Ross Lawley
bd3340c73f
Merge pull request #162 from glyphobet/master
...
Comments in unit tests should say "degrees," not "miles":
MongoDB docs are confusing, only the spherical queries $nearSphere and $centerSphere use radians. The $near and $center queries, which are the ones that are used in these mongoengine tests, use the same units as the coordinates. For distances on the earth, this means they use degrees. (This is also why the 2d indexes can be used for other 2d data, not just points on the earth.)
Here's a mongo shell session demonstrating that $near and $center use degrees, and that $nearSphere and $centerSphere are the ones that use radians: https://gist.github.com/964126
So, these mongoengine tests are using $near and $center, which use degrees, not miles, kilometers, or radians.
Thanks glyphobet for the clarification and taking time to explain it!
2011-05-10 02:15:17 -07:00
Nick Vlku Jr
c379ff883a
Merge remote branch 'upstream/master' into dev
2011-05-10 00:13:15 -04:00
Matt Chisholm
3b7a8ce449
change comments to reflect that the geospatial queries use degrees, not miles
2011-05-09 22:29:27 +02:00
Ross Lawley
e9ad04f763
Merge pull request #160 from Ankhbayar/master
...
Added __hash__, __ne__ with test.
Thanks Ankhbayar
2011-05-09 02:28:41 -07:00
Ross Lawley
f0277736e2
Updated queryset to handle latest version of pymongo
...
map_reduce now requires an output.
Reverted previous _lookup_field change, until a test case
is produced for the incorrect behaviour.
2011-05-09 10:22:37 +01:00
Ross Lawley
49c978ad9e
Merge remote branch 'upstream/master'
2011-05-09 09:01:19 +01:00
Harry Marr
eeae1b4aea
Merge pull request #148 from srackham/drop-close-warning
...
Drop gridfs close warning
2011-05-08 06:41:28 -07:00
Harry Marr
9432d1a194
Merge pull request #158 from glyphobet/master
...
tiny documentation fix
2011-05-08 06:40:29 -07:00
Harry Marr
3b2dbf1897
Merge pull request #159 from gregglind/patch-1
...
Tiny spelling correction / clarification.
2011-05-08 06:39:45 -07:00
Gregg Lind
9c1ad5f631
Tiny spelling correction / clarification.
2011-05-04 18:01:06 -07:00
Matt Chisholm
c2fef4e791
error in documentation; need to use keyword arg to create Comment object
2011-05-03 23:50:20 +02:00
Alistair Roche
76cbb66843
Fixed error with _lookup_field
...
It was failing when given multiple fields
2011-04-28 14:31:19 +01:00
Анхбаяр Лхагвадорж
96dbeea171
Added __hash__, __ne__ with test.
2011-04-12 20:23:16 +08:00
Stuart Rackham
829df581f0
Drop gridfs close warning
2011-04-04 15:19:57 +12:00
Stuart Rackham
bd84d08b95
Fixed misspelt variable name.
2011-04-04 13:44:36 +12:00
Stuart Rackham
2c7469c62a
Additional file-like behavior for FileField (optional size arg for read
...
method; fixed seek and tell methods for reading files).
2011-04-03 15:21:00 +12:00
Nick Vlku
6f7d7537f2
Added a test to verify that if a native JS function is put in as a tag, item_frequencies no longer fails (added the word 'watch' as a tag)
2011-03-06 18:59:29 -05:00
Harry Marr
d7c9694be0
Merge branch 'master' of https://github.com/radev/mongoengine into dev
2011-03-06 13:23:30 +00:00
Harry Marr
69171282e9
Merge branch 'master' of https://github.com/lig/mongoengine into dev
...
Conflicts:
.gitignore
2011-03-06 13:11:21 +00:00
Michael Henson
53d66b7267
Added QuerySet.clone() to support copying querysets
2011-01-27 23:51:10 -05:00
Nick Vlku
ba9813e5a3
Fixed Issue 122: item_frequencies doesn't work if tag is also the name of a native js function
...
Did this by checking if the item is a native function, if it is I set it to an initial numeric value. Future occurrences of the tag count correctly.
2011-01-09 22:30:18 -05:00
Harry Marr
ce8b3ea0a1
Merge remote branch 'nvie/dev' into dev
2011-01-09 23:29:11 +00:00
Harry Marr
559fc46037
Merge branch 'master' of https://github.com/sshwsfc/mongoengine into sshwsfc-dev
2011-01-09 23:21:22 +00:00
Harry Marr
10c0b035ae
Merge remote branch 'aleszoulek/dev' into dev
2011-01-09 23:19:41 +00:00
Harry Marr
37818d2d72
Merge branch 'dev' of https://github.com/alefnula/mongoengine into alefnula-dev
2011-01-09 21:00:03 +00:00
Harry Marr
357dd0e7cc
Merge remote branch 'iapain/master' into dev
2011-01-09 20:52:39 +00:00
Serge Matveenko
34b923b7ac
Fix Issue#115: Possibility to bypass class_name check in queryset.
2010-12-21 18:29:51 +03:00
Serge Matveenko
846f5a868f
Fix Issue#116: Use cls instead of User in create_user.
2010-12-21 18:16:00 +03:00
Serge Matveenko
0acb2d904d
Add hidden (.*) files to .gitignore but not the .gitignore itself.
2010-12-21 18:11:33 +03:00
Vincent Driessen
03a757bc6e
Add a safety note on using the new delete rules.
2010-12-21 01:19:27 -08:00
Vincent Driessen
0f68df3b4a
Fix line width.
2010-12-20 05:55:50 -08:00
Vincent Driessen
07ef58c1a7
Rename delete_rule -> reverse_delete_rule.
2010-12-20 05:55:46 -08:00
Vincent Driessen
52f5deb456
Add documentation for the delete_rule argument.
2010-12-20 05:23:27 -08:00
Vincent Driessen
e05e6b89f3
Add safe_update parameter to updates.
2010-12-16 11:54:34 +01:00
Vincent Driessen
ffc8b21f67
Some tests broke over the default None value.
2010-12-14 03:50:49 -08:00
Vincent Driessen
16e1f72e65
Avoid confusing semantics when comparing delete rules.
2010-12-14 03:39:14 -08:00
Vincent Driessen
620f4a222e
Don't check for DO_NOTHING in the delete rule registration method.
...
It is already checked before it is invoked. This saves the ugly import
of DO_NOTHING inside document.py.
2010-12-14 02:03:26 -08:00
Vincent Driessen
f30fd71c5e
Refactor: put the delete rule constants into the queryset module, too.
2010-12-13 13:42:01 -08:00
Vincent Driessen
3b55deb472
Remove unused meta data.
2010-12-13 13:25:49 -08:00
Vincent Driessen
4d5164c580
Use multiple objects in the test.
...
This is to ensure only the intended subset is deleted and not all
objects.
2010-12-13 13:24:20 -08:00
Vincent Driessen
5b118f64ec
Add tests for nullification and denial on the queryset.
2010-12-13 12:54:26 -08:00
Vincent Driessen
07dae64d66
More the deletion code over to the QuerySet object.
...
The Document object doens't have any delete_rule specific code anymore,
and leverages the QuerySet's ability to deny/cascade/nullify its
relations.
2010-12-13 12:36:24 -08:00
Viktor Kerkez
501f033712
Merge remote branch 'hmarr/dev' into dev
2010-12-11 01:40:28 +01:00
Igor Ivanov
a68cb20266
Allow 0 or "" to be used as valid _id value.
2010-12-09 08:38:47 -08:00
Vincent Driessen
3c98a4bff5
Remove accidentally left behind debugging message.
2010-12-06 00:07:30 -08:00
Vincent Driessen
20eb920cb4
Change test docstring.
2010-12-06 00:06:03 -08:00
Vincent Driessen
b06d794854
Implementation of DENY rules.
2010-12-05 23:43:19 -08:00
Vincent Driessen
f3da5bc092
Fix: potential NameError bug in test case.
2010-12-05 23:03:40 -08:00
Vincent Driessen
d21434dfd6
Make the nullification an atomic operation.
...
This shortcut works now, since hmarr fixed the unset bug in dev.
2010-12-05 22:41:16 -08:00
Vincent Driessen
ad1aa5bd3e
Add tests that need to be satisfied.
2010-12-05 22:24:28 -08:00
Vincent Driessen
dd21ce9eac
Initial implementation of the NULLIFY rule.
2010-12-05 22:24:27 -08:00
Vincent Driessen
bba3aeb4fa
Actually *use* the register_delete_rule classmethod, since it's there.
2010-12-05 22:24:27 -08:00
Vincent Driessen
86233bcdf5
Added initial implementation of cascading document deletion.
...
The current implementation is still very basic and needs some polish.
The essence of it is that each Document gets a new meta attribute called
"delete_rules" that is a dictionary containing (documentclass,
fieldname) as key and the actual delete rule as a value. (Possible
values are DO_NOTHING, NULLIFY, CASCADE and DENY. Of those, only
CASCADE is currently implented.)
2010-12-05 22:24:27 -08:00
Vincent Driessen
4f3eacd72c
Fix: whitespace.
...
This broke my Vim auto-folds.
2010-12-05 22:24:27 -08:00
Vincent Driessen
67fcdca6d4
Fix: PyFlakes pointed out this missing import.
2010-12-05 22:24:27 -08:00
Vincent Driessen
62cc8d2ab3
Fix: redefinition of "datetime" from line 6.
2010-12-05 22:24:27 -08:00
Harry Marr
3a0523dd79
Fixed issue with unset operation
2010-12-05 21:43:04 +00:00
Harry Marr
cec8b67b08
Added test for unsetting fields
2010-12-05 20:47:24 +00:00
sshwsfc
ca8c3981c4
2010-11-18 22:35:11 -08:00
sshwsfc
ca56785cbc
add some prepare_query_value method for fields
2010-11-18 21:33:05 -08:00
Deepak Thukral
b12c34334c
added test case for issue 103
2010-11-18 20:44:51 +01:00
Viktor Kerkez and Viktor Kerkez
9c8411b251
Choice field test updated
2010-11-11 18:19:35 +01:00
Ales Zoulek
66baa4eb61
QS.all_fields - resets previous .only() and .exlude()
2010-11-10 22:01:27 +01:00
Deepak Thukral
89646439e7
fixed typo in error message
2010-11-10 21:02:59 +01:00
Ales Zoulek
bda4776a18
added Queryset.exclude() + tests
2010-11-05 12:57:48 +01:00
Harry Marr
c6058fafed
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2010-11-02 13:44:19 +00:00
Harry Marr
11950eabea
Merge branch 'master' of http://github.com/aleszoulek/mongoengine into dev
2010-11-02 13:43:33 +00:00
Viktor Kerkez
e1282028a5
Added django style choices
2010-11-01 14:54:55 +01:00
Harry Marr
6b880aa8b3
Fixed order-then-filter issue
2010-11-01 00:43:30 +00:00
Ales Zoulek
a3830be4c9
QuerySet.only() supports subfields + tests
2010-10-28 01:13:24 +02:00
Viktor Kerkez
ef15733efe
Added creation_counter to BaseField in order to provied form modules with a way to sort fields i order user specified them (same technique is used in Django)
2010-10-23 22:35:37 +02:00
Viktor Kerkez
f0c5dd1bce
Small fix for Python 2.5
2010-10-23 22:33:03 +02:00
Harry Marr
e868f37c60
Merge branch 'master' of http://github.com/benmur/mongoengine into dev
2010-10-20 13:31:47 +01:00
Rached Ben Mustapha
18baa2dd7a
fix calling a queryset after skip and limit have been set
2010-10-19 22:40:36 +00:00
Rached Ben Mustapha
2560145551
add a failing test for the pagination bug
2010-10-19 22:23:08 +00:00
Harry Marr
3b88a4f728
Fixed a couple of errors in the docs
2010-10-19 12:28:34 +01:00
Harry Marr
69989365c7
Merge branch 'v0.4'
2010-10-18 13:56:07 +01:00
Harry Marr
2b9c526b47
Merge branch 'v0.4' of http://github.com/schallis/mongoengine into v0.4
2010-10-18 13:55:57 +01:00
Steve Challis
d7c42861fb
Minor GridFS corrections
2010-10-18 10:25:06 +01:00
Harry Marr
e9d478ed9f
Merge branch 'master' of http://github.com/cyberdelia/mongoengine into v0.4
2010-10-18 10:22:56 +01:00
Harry Marr
d6cb5b9abe
Removed invalid connection tests
2010-10-18 10:21:23 +01:00
Steve Challis
5580b003b5
Added self to AUTHORS
2010-10-18 01:30:32 +01:00
Steve Challis
67736c849d
Finished GridFS Documentation
...
* Also made GridFS replace test pass
2010-10-18 00:55:44 +01:00
Steve Challis
39e27735cc
Merge branch 'v0.4' of git://github.com/hmarr/mongoengine into v0.4
...
Conflicts:
docs/changelog.rst
mongoengine/base.py
mongoengine/queryset.py
2010-10-17 23:48:20 +01:00
Harry Marr
0902b95764
Added support for recursive embedded documents
2010-10-18 00:27:40 +01:00
Steve Challis
dc7181a3fd
Begun GridFS documentation
2010-10-17 23:43:58 +01:00
Harry Marr
e93c4c87d8
Fixed inheritance collection issue
2010-10-17 17:41:20 +01:00
Harry Marr
dcec61e9b2
Raise AttributeError when necessary on QuerySet[]
2010-10-17 16:36:22 +01:00
Harry Marr
007f116bfa
Increment version to 0.4
2010-10-17 15:42:31 +01:00
Harry Marr
6817f3b7ba
Updated docs for v0.4
2010-10-17 15:40:49 +01:00
Harry Marr
36993029ad
Removed old Q-object implementation
2010-10-17 14:22:45 +01:00
Harry Marr
012352cf24
Added snapshot and timeout methods to QuerySet
2010-10-17 14:21:55 +01:00
Harry Marr
26723992e3
Combined Q-object tests
2010-10-17 14:14:05 +01:00
Harry Marr
3591593ac7
Fixed GenericReferenceField query issue
2010-10-17 13:55:48 +01:00
Harry Marr
d3c2dfbaee
Merge branch 'master' of http://github.com/ixc/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
mongoengine/queryset.py
2010-10-17 13:54:16 +01:00
Harry Marr
b2b4456f74
Merge branch 'new-q-objects' into v0.4
2010-10-17 13:42:29 +01:00
Harry Marr
f666141981
Added test for list of referencefields
2010-10-17 13:23:11 +01:00
Harry Marr
fb4c4e3e08
Merge branch 'master' of http://github.com/jaimebuelta/mongoengine into v0.4
2010-10-17 13:06:41 +01:00
Harry Marr
34fa5cd241
Added some imports for PyMongo 1.9 compatibility.
2010-10-16 16:03:26 +01:00
Jaime
833fa3d94d
Added note about the use of default parameters
2010-10-06 20:02:14 +01:00
Harry Marr
92471445ec
Fix changing databases
...
Conflicts:
mongoengine/connection.py
mongoengine/queryset.py
2010-10-05 00:46:13 +01:00
Harry Marr
3acfd90720
Added some imports for PyMongo 1.9 compatibility.
2010-10-04 14:58:00 +01:00
Harry Marr
4742328b90
Delete stale cursor when query is filtered. Closes #62 .
2010-10-04 12:11:01 +01:00
Harry Marr
b4c54b1b62
Added support for the $not operator
2010-10-04 11:41:49 +01:00
Harry Marr
76cb851c40
Replaced old Q-object with new, revamped Q-object
2010-10-04 11:41:07 +01:00
Harry Marr
3fcc0e9789
Combining OR nodes works, fixed other Q-object bugs
2010-10-04 02:10:37 +01:00
Harry Marr
8e65154201
Added a tree transformer, got complex ANDs working
2010-10-04 00:06:42 +01:00
Harry Marr
c0f7c4ca2d
Fixed error in empty property on QCombination
2010-10-03 23:22:36 +01:00
Harry Marr
db2f64c290
Made query-tree code a bit clearer
2010-10-03 23:01:44 +01:00
Harry Marr
a3c46fec07
Compilation of combinations - simple $or now works
2010-10-03 21:26:26 +01:00
Harry Marr
62388cb740
Started work on new Q-object implementation
2010-10-03 21:08:28 +01:00
Timothée Peignier
9c9903664a
add support for pk property in documents and filters
2010-10-03 18:50:35 +02:00
Harry Marr
556eed0151
QuerySet.distinct respects query. Closes #64 .
2010-10-03 15:22:47 +01:00
Harry Marr
4012722a8d
QuerySet.item_frequencies works with non-list fields
2010-10-03 15:01:45 +01:00
Harry Marr
4c68bc6c96
Merge branch 'master' of http://github.com/sibsibsib/mongoengine into v0.4
...
Conflicts:
mongoengine/queryset.py
tests/queryset.py
2010-10-03 01:57:22 +01:00
Harry Marr
159923fae2
Made lists of recursive reference fields possible
2010-10-03 01:48:42 +01:00
sib
72c7a010ff
added unit test for addToSet
2010-09-30 03:05:15 -03:00
sib
2c8f004103
added update operator for addToSet
2010-09-30 02:53:44 -03:00
Steve Challis
67a9b358a0
Merge branch 'v0.4' of git://github.com/hmarr/mongoengine into v0.4
2010-09-29 23:39:09 +01:00
Steve Challis
b5eb3ea1cd
Added a Django storage backend.
...
- New GridFSStorage storage backend
- New FileDocument document for storing files in GridFS
- Whitespace cleaned up in various files
2010-09-29 23:36:58 +01:00
Harry Marr
98bc0a7c10
Raise AttributeError when necessary on GridFSProxy
2010-09-25 22:47:09 +01:00
Harry Marr
bb24879149
Moved custom queryset test to correct place
2010-09-19 20:00:53 +01:00
Harry Marr
3d6ee0ce00
Merge branch 'master' of http://github.com/n1k0/mongoengine into v0.4
2010-09-19 19:55:57 +01:00
Harry Marr
ee72845701
Merge branch 'v0.4' of http://github.com/samuelclay/mongoengine into v0.4
2010-09-19 19:53:12 +01:00
Harry Marr
d158727154
Merge branch 'v0.4' of github.com:hmarr/mongoengine into v0.4
2010-09-19 17:18:39 +01:00
Harry Marr
73092dcb33
QuerySet update method returns num affected docs
2010-09-19 17:17:37 +01:00
Samuel Clay
91ddd310ba
Merge branch 'v0.4' of github.com:samuelclay/mongoengine into v0.4
2010-09-16 17:21:21 -04:00
Samuel Clay
20dd7562e0
Adding multiprocessing support to mongoengine by using the identity of the process to define the connection. Each 'thread' gets its own pymongo connection.
2010-09-16 17:19:58 -04:00
Greg Turner
b7e84031e3
Escape strings for regex query.
2010-09-16 14:37:18 +10:00
Harry Marr
f11ee1f9cf
Added support for using custom QuerySet classes
2010-09-15 09:47:13 +01:00
Nicolas Perriault
449f5a00dc
added a 'validate' option to Document.save() +docs +tests
2010-09-11 17:45:57 +02:00
Steve Challis
bd1bf9ba24
Merge branch 'v0.4' of git://github.com/hmarr/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
tests/fields.py
2010-08-31 00:25:10 +01:00
Harry Marr
2af5f3c56e
Added support for querying by array position. Closes #36 .
2010-08-31 00:24:30 +01:00
Harry Marr
1849f75ad0
Made GridFSProxy a bit stricter / safer
2010-08-31 00:23:59 +01:00
Harry Marr
32e66b29f4
Fixed FileField problem caused by shared objects
2010-08-30 22:12:05 +01:00
Harry Marr
69012e8ad1
Fixed incorrect $pull test
2010-08-30 19:59:49 +01:00
Harry Marr
17642c8a8c
Fixed QuerySet.average issue that ignored 0
2010-08-30 19:48:17 +01:00
Mircea Pasoi and Harry Marr
f1aec68f23
Inherit index options.
2010-08-30 17:40:01 +01:00
Mircea Pasoi and Harry Marr
3e30d71263
Support for background and drop_dups indexing options.
2010-08-30 17:39:41 +01:00
Mircea Pasoi and Harry Marr
266f33adc4
Bug fix for gridfs FileField.
2010-08-30 17:38:28 +01:00
Mircea Pasoi and Harry Marr
dcc8d22cec
Proper unique index name when using db_field.
2010-08-30 17:38:07 +01:00
Harry Marr
9540555b26
Merge branch 'master' of git://github.com/flosch/mongoengine into v0.4
2010-08-30 17:29:59 +01:00
Florian Schlachter
185e7a6a7e
Better way of checking if new_class has an 'objects' attribute.
2010-08-30 18:38:41 +02:00
Florian Schlachter
c39f315ddc
Merge remote branch 'hmarr/v0.4'
2010-08-30 18:38:12 +02:00
Harry Marr
5b230b90b9
Doc fix (all operator)
2010-08-30 15:34:29 +01:00
Harry Marr
1ed9a36d0a
Added test for pop operation
2010-08-30 14:02:02 +01:00
Florian Schlachter
e0911a5fe0
Replaced slow exception handling with has_key.
2010-08-30 14:58:58 +02:00
Harry Marr
3297578e8d
Merge branch 'master' of http://github.com/richardhenry/mongoengine into v0.4
2010-08-30 13:57:42 +01:00
Harry Marr
954d5c16d8
Merge branch 'master' of http://github.com/serverplot/mongoengine into v0.4
2010-08-30 13:56:28 +01:00
Florian Schlachter
95efa39b52
Added *.egg to .gitignore.
2010-08-30 14:56:18 +02:00
Florian Schlachter
c27ccc91d2
Merge remote branch 'hmarr/v0.4'
...
Conflicts:
tests/fields.py
2010-08-30 14:55:49 +02:00
Harry Marr
4fb6fcabef
Added test for overriding objects
2010-08-30 13:54:20 +01:00
Harry Marr
2635e41f69
Merge branch 'master' of http://github.com/theojulienne/mongoengine into v0.4
2010-08-30 13:54:07 +01:00
Harry Marr
ba01817ee3
Merge branch 'master' of http://github.com/vandersonmota/mongoengine into v0.4
2010-08-30 13:34:43 +01:00
Florian Schlachter
1e1d7073c8
Merge remote branch 'hmarr/v0.4'
...
Conflicts:
tests/fields.py
2010-08-30 14:33:04 +02:00
Harry Marr
40eb23a97a
Merge branch 'master' of git://github.com/flosch/mongoengine into v0.4
...
Conflicts:
tests/fields.py
2010-08-30 13:21:10 +01:00
Harry Marr
f4711699e4
Merge branch 'master' of http://github.com/danielhasselrot/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
2010-08-30 13:03:23 +01:00
Harry Marr
3b62cf80cd
Fixed {Dict,List}Field default issue. Closes #46 .
2010-08-30 13:00:34 +01:00
Harry Marr
d99c5973c3
Fixed Q object DBRef test bug
2010-08-30 12:52:24 +01:00
Richard Henry
7de9adc6b1
Adding support for pop operations to QuerySet.update and QuerySet.update_one
2010-08-28 09:36:25 +01:00
sp
17addbefe2
made it more like Django's user model
2010-08-18 16:50:52 -04:00
Greg Turner
d274576b47
Fixed premature return for query gen
2010-08-13 22:30:36 +10:00
Greg Turner
6373e20696
Better error reporting on a validation error for a list.
2010-08-13 22:28:26 +10:00
Greg Turner
809fe44b43
Added a __raw__ parameter for passing query dictionaries directly to pymongo
2010-08-12 15:14:20 +10:00
Greg Turner
198ccc028a
made list queries work with regexes (e.g. istartswith)
2010-08-06 20:29:09 +10:00
Theo Julienne
b96e27a7e4
Allow documents to override the 'objects' QuerySetManager
2010-07-30 22:09:00 +10:00
Timothée Peignier and Florian Schlachter
1147ac4350
ignore virtualenv directory
2010-07-27 01:30:16 +08:00
flosch
21d267cb11
Now order_by() works like queries for referencing deeper fields (replacing . with __). old: order_by('mydoc.myattr') / new: order_by('mydoc__myattr'). Closes #45
2010-07-26 17:28:59 +02:00
flosch
6791f205af
Style fix.
2010-07-26 16:50:09 +02:00
flosch
7ab2e21c10
Handle unsafe expressions when using startswith/endswith/contains with unsafe expressions. Closes #58
2010-07-26 16:42:10 +02:00
flosch
2f991ac6f1
Added all() method to get all document instances from a document. Extended the FileField's tests with testing on empty filefield.
2010-07-25 19:02:15 +02:00
flosch
9411b38508
Removed unnecessary comment.
2010-07-25 18:45:49 +02:00
flosch
386c48b116
Typo.
2010-07-25 18:43:11 +02:00
flosch
9d82911f63
Added tests for #46 .
2010-07-25 18:38:24 +02:00
flosch
51065e7a4d
Closes #46 by instantiating a new default instance for every field by request.
2010-07-25 18:33:33 +02:00
flosch
327452622e
Handle DBRefs correctly within Q objects. Closes #55
2010-07-25 18:22:26 +02:00
flosch
13316e5380
Introduced new Document.objects.create, like django has. It creates a new object, saves it and returns the new object instance.
2010-07-25 17:35:09 +02:00
Harry Marr
9f98025b8c
Added QuerySet.distinct. Closes #44 .
2010-07-25 15:29:02 +01:00
Harry Marr
564f950037
Merge branch 'master' of git://github.com/flosch/mongoengine into v0.4
2010-07-25 15:09:45 +01:00
Harry Marr
be651caa68
Removed a couple of sneaky print statements
2010-07-25 15:02:37 +01:00
Florian Schlachter
aa00feb6a5
FileField's values are now optional. When no value is applied, no File object is created and referenced.
2010-07-20 22:46:00 +02:00
Florian Schlachter
03c0fd9ada
Make default value of DictField an empty dict instead of None.
2010-07-19 19:01:53 +02:00
Daniel Hasselrot and Florian Schlachter
6093e88eeb
Made list store empty list by default
2010-07-19 08:07:03 +08:00
Florian Schlachter
ec519f20fa
Makes the tests compatible to pymongo 1.7+. Not backwards compatible!
2010-07-19 01:32:28 +02:00
Florian Schlachter
d3495896fa
Merge branch 'master' of github.com:flosch/mongoengine
2010-07-19 01:12:16 +02:00
Florian Schlachter
323c86308a
Merge remote branch 'hmarr/v0.4'
...
Conflicts:
mongoengine/fields.py
tests/fields.py
2010-07-19 01:11:28 +02:00
martin and Florian Schlachter
f9057e1a28
Fixed bug in FileField, proxy was not getting the grid_id set
2010-07-19 07:03:45 +08:00
Florian Schlachter
9596a25bb9
Fixed documentation bug.
2010-07-19 00:56:16 +02:00
Steve Challis and Florian Schlachter
47bfeec115
Tidied code, added replace() method to FileField
2010-07-19 06:53:21 +08:00
martin and Florian Schlachter
6bfd6c322b
Fixed bug with GeoLocationField
2010-07-19 06:52:57 +08:00
Steve Challis and Florian Schlachter
0512dd4c25
Added new FileField with GridFS support
...
The API is similar to that of PyMongo and most of the same operations are
possible.
The FileField can be written too with put(), write() or by using the assignment
operator. All three cases are demonstrated in the tests. Metadata can be added
to a FileField by assigning keyword arguments when using put() or new_file().
2010-07-19 06:52:11 +08:00
Daniel Hasselrot
acbc741037
Made list store empty list by default
2010-07-15 18:20:29 +02:00
Harry Marr
c2163ecee5
Added test for Geo indexes
2010-07-07 15:12:14 +01:00
Harry Marr
71689fcf23
Got within_box working for Geo fields
2010-07-07 15:00:46 +01:00
Harry Marr
1c334141ee
Merge branch 'geo' of git://github.com/blackbrrr/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
mongoengine/queryset.py
2010-07-07 14:53:25 +01:00
Daniel Hasselrot
b89d71bfa5
Do not convert None objects
2010-07-06 14:17:30 +02:00
Daniel Hasselrot
3179c4e4ac
Now only removes _id if none, for real
2010-07-06 11:25:49 +02:00
Daniel Hasselrot
f5e39c0064
Allowed _id to be missing when converting to mongo
2010-07-06 10:25:31 +02:00
vandersonmota
86e2797c57
added a TestCase for tests that uses mongoDB
2010-06-09 22:28:30 -03:00
Steve Challis
39b749432a
Tidied code, added replace() method to FileField
2010-06-03 08:27:21 +01:00
Steve Challis
0ad343484f
Added new FileField with GridFS support
...
The API is similar to that of PyMongo and most of the same operations are
possible.
The FileField can be written too with put(), write() or by using the assignment
operator. All three cases are demonstrated in the tests. Metadata can be added
to a FileField by assigning keyword arguments when using put() or new_file().
2010-06-02 20:53:39 +01:00
Harry Marr
196606438c
Fixed Q-object list query issue
2010-05-30 18:34:06 +01:00
Harry Marr
6896818bfd
Added docs for exact, iexact
2010-05-30 17:40:01 +01:00
Flavio Amieiro
eb4f0ad7fb
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-05-29 11:52:08 -03:00
Harry Marr
467e61bcc1
Documentation fix
2010-05-28 02:28:42 +01:00
Flavio Amieiro
a2c78c9063
Add 'exact' and 'iexact' match operators for QuerySets
2010-05-26 20:24:57 -03:00
Harry Marr
b23353e376
Fixed inherited document primary key issue
2010-05-24 23:03:30 +01:00
Harry Marr
b8e9790de3
Merge branch 'master' of git://github.com/flosch/mongoengine
2010-05-22 15:59:41 +01:00
Harry Marr
e37e8d9e65
Merge branch 'master' of git://github.com/blackbrrr/mongoengine
2010-05-22 15:53:54 +01:00
Stephan Jaekel
f657432be3
always ignore empty Q objects, if the new Q is empty, the old one will be returned.
2010-05-14 14:35:27 +02:00
Stephan Jaekel
80c2895e56
Merge branch 'master' of http://github.com/flosch/mongoengine
2010-05-14 14:22:29 +02:00
Stephan Jaekel
88da998532
added test for empty Q objects
2010-05-14 14:21:58 +02:00
Stephan Jaekel
225972e151
Added some handy shortcuts for django users.
2010-05-14 14:03:18 +02:00
Stephan Jaekel
4972bdb383
ignore empty Q objects when combining Q objects.
2010-05-14 14:02:39 +02:00
Florian Schlachter
11c7a15067
Added test for DictField's basecls.
2010-05-14 13:49:13 +02:00
Florian Schlachter
9df725165b
Added a possibility to define a base class for fields from a DictField (instead of using BaseField). This is important if you want to use field-based query abilities like StringField's startswith/endswith/contains. Just define `basecls´ when defining your DictField. Example:
...
class Test(Document):
name = StringField()
translations = DictField(basecls=StringField)
Without basecls defined:
> Test.objects(translations__german__startswith='Deutsch')
[]
With basecls set to StringField:
> Test.objects(translations__german__startswith='Deutsch')
[<Test: Test object>]
2010-05-14 13:35:45 +02:00
Florian Schlachter
682326c130
documentation bug fixed
2010-04-30 18:04:58 +02:00
Matt Dennewitz
86575cb035
can't use unicode strings for __init__ kwargs
2010-04-19 09:39:03 -05:00
Florian Schlachter
eecc6188a7
fixes issue #41 since unicode kwargs is an feature of python 2.6.5 and above.
2010-04-19 11:34:09 +02:00
Harry Marr
3b4df4615a
Fixed MRO error that occured on document inheritance
2010-04-17 21:45:11 +01:00
Harry Marr
edfda6ad5b
BinaryField returns str not unicode
2010-04-17 21:24:06 +01:00
Florian Schlachter
3c7e8be2e7
Removed create_default since it can be achieved with the default argument (like default=MyEmbeddedDocument since default takes callables too).
2010-04-17 16:59:09 +02:00
Florian Schlachter
416fcba846
Merge remote branch 'hmarr/master'
...
Conflicts:
mongoengine/base.py
2010-04-17 01:42:26 +02:00
Florian Schlachter
e196e229cd
Accepting a tuple for validation argument.
2010-04-17 01:36:45 +02:00
Florian Schlachter
da57572409
Introduced new create_default field argument. If set to true, mongoengine will automagically create an instance of the desired document class (useful if using EmbeddedDocumentField for example):
...
class SubDoc(EmbeddedDocument):
url = URLField()
class MyDoc(Document):
subdoc = EmbeddedDocumentField(SubDoc, create_default=True)
With create_default MyDoc().subdoc is automatically instantiated. Hint: default=SubDoc() WON'T work (that's why I've introduced create_default)
2010-04-17 01:23:14 +02:00
Florian Schlachter
ef172712da
bugfix
2010-04-16 22:25:45 +02:00
Florian Schlachter
170c56bcb9
introduced min_length for a StringField
2010-04-16 18:13:11 +02:00
Florian Schlachter
f3ca9fa4c5
Make validation-lists possible. Example:
...
class Doc(Document):
country = StringField(validation=['DE', 'AT', 'CH'])
2010-04-16 18:00:51 +02:00
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
Don Spaulding
e9c92f30ba
Add description of each of the keyword arguments to BaseField.__init__(), adds description for choices too.
2010-04-15 17:57:23 -05:00
Florian Schlachter
0a074e52e0
Merge remote branch 'hmarr/master'
...
Conflicts:
mongoengine/fields.py
2010-04-15 23:10:34 +02:00
Don Spaulding
da3f4c30e2
Fix doc typos
2010-04-14 22:40:56 -05: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 and Harry Marr
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
600ca3bcf9
renamed 'test_near' to 'test_geospatial_operators', updated added ordering checks to test
2010-03-23 00:57:26 -05: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
f47d926f29
touched up comments in advanced map/reduce test
2010-03-17 00:56:34 -05:00
blackbrrr
f4d0938e3d
rewrite simple map/reduce test
2010-03-17 00:51:01 -05:00
blackbrrr
f156da4ec2
bumped version
2010-03-17 00:50:44 -05:00
blackbrrr
0c1e5da9a8
added mongoengine.MapReduceDocument to api ref
2010-03-17 00:50:07 -05:00
blackbrrr
d6b317c552
Merge branch 'master' into mapreduce
2010-03-17 00:34:29 -05:00
blackbrrr
01826c6876
Merge branch 'master' of github.com:blackbrrr/mongoengine into mapreduce
2010-03-17 00:34:19 -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
aa13ab37c4
fixed field_js merge artifact
2010-03-09 15:31:52 -06: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
d7086fc4a3
Added rewind behaviour and BinaryField to docs
2010-03-08 22:23:40 +00: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
Harry Marr
48e313fb44
Merge branch 'master' of git://github.com/iapain/mongoengine
2010-03-08 21:59:42 +00:00
Harry Marr
5390117275
Modified AUTHORS
2010-03-08 21:58:19 +00:00
Rached Ben Mustapha
0b3af2052f
implement binary field size validation
2010-03-08 17:06:52 +01:00
Rached Ben Mustapha
bb19ba3eb6
Drop collection at the end of the test
2010-03-08 16:43:43 +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
blackbrrr
3b6d8fab47
added AUTHORS file
2010-03-01 12:26:03 -06: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
4451843a39
Added docs for QuerySet.only
2010-02-28 17:52:29 +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
719a653375
Added match operator docs
2010-02-26 13:48:00 +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
Harry Marr
634f771547
QuerySet repr now uses limit and skip
2010-02-24 17:01:31 +00:00
Harry Marr
2996f8919d
Limits of size 0 now return no results
2010-02-24 16:07:26 +00:00
blackbrrr
1b68efe7c7
updated QuerySet.only docstring
2010-02-24 09:52:39 -06:00
blackbrrr
a19a7b976c
updated advanced map/reduce test to include scope; misc cleanup in queryset
2010-02-23 22:26:05 -06:00
Harry Marr
145b0c33fc
Support 1-arg queryset managers, but warn about deprecation
2010-02-23 18:27:14 +00:00
blackbrrr
8b1a39f2c1
added QuerySet.only
2010-02-23 00:24:28 -06:00
Harry Marr
6dbc051409
Fixed in_bulk test
2010-02-23 01:14:00 +00:00
Harry Marr
c148a5bbfc
Merge branch 'master' of git://github.com/ack/mongoengine
2010-02-23 01:12:56 +00:00
Deepak Thukral
90d9bd9723
added natural object comparision
2010-02-21 12:13:58 +01:00
Deepak Thukral
bc7e6ccf53
set_password returns user object, comp. with django 1.2
2010-02-21 11:51:21 +01:00
Albert Choi
6cab002214
missing DecimalField
2010-02-15 14:25:49 -08:00
blackbrrr
3762a69537
added QuerySet.in_bulk, bulk querying with ObjectIds
2010-02-14 21:02:55 -06:00
blackbrrr
348f7b5dfc
merged master, fixed 1 merge conflict
2010-02-14 17:23:38 -06:00
blackbrrr
008a62e4e9
updated map/reduce documentation
2010-02-12 16:07:44 -06:00
blackbrrr
a4c5fa57e0
updated notes in map_reduce_advanced queryset test
2010-02-12 15:53:28 -06:00
blackbrrr
9be6c41af7
map/reduce result objects now only have 'key', 'value', and 'object' properties; MapReduceDocument.key_object now returns proper Document subclass; added finalize with Reddit ranking simulation; MapReduceDocuments now yielded;
2010-02-12 14:39:08 -06:00
blackbrrr
5c311eefb1
fixed merge conflict in queryset test
2010-02-12 09:59:09 -06:00
blackbrrr
d0ceb74a2e
removed unused fields and tests
2010-02-12 09:57:09 -06:00
Harry Marr
ea1fe6a538
Fixed set/unset issue with ListFields
2010-02-12 11:21:51 +00:00
Florian Schlachter
a93509c9b3
Merge remote branch 'hmarr/master'
2010-02-12 10:19:47 +01:00
Harry Marr
210e9e23af
Dereferencing of referenced documents within lists
2010-02-12 02:31:41 +00:00
blackbrrr
c4513f0286
merged master
2010-02-11 15:43:37 -06:00
Florian Schlachter
1114572b47
Merge remote branch 'hmarr/master'
2010-02-10 14:25:33 +01:00
Harry Marr
b2588d1c4f
Changed neq to ne, fixed Q object in and nin
2010-02-10 12:35:41 +00:00
blackbrrr
69d3e0c4b6
added map/reduce support via QuerySet.map_reduce. map_reduce operations respect query specs and ordering, but ordering is currently only applied to map/reduce collection. map/reduce may eventually require its own QuerySet to avoid slicing conflicts. results are returned as lists of MapReduceDocument objects, dynamic objects representing the query. tests and documentation included. considered in the neighborhood of 'good start'.
2010-02-09 14:56:15 -06:00
Florian Schlachter
e2414d8fea
Merge remote branch 'hmarr/master'
2010-02-05 00:36:26 +01:00
Florian Schlachter
24db0d1499
return db-object to allow low-level access from outside via connect()
2010-02-05 00:35:49 +01:00
Harry Marr
89f505bb13
Removed pool_size from connect, minor tidyup
2010-02-04 01:44:52 +00:00
Florian Schlachter
df5b1f3806
Merge remote branch 'hmarr/master'
2010-02-03 02:26:26 +01:00
Harry Marr
755deb3ffe
Added DictField
2010-02-03 01:22:25 +00:00
Florian Schlachter
59f8c9f38e
make mongoengine more international :) using unicode-strings; str(err) raises errors if it contains non-ascii chars/umlauts
2010-02-02 21:48:47 +01:00
Florian Schlachter
69e9b5d55e
fixed unicode-bug; replaced str(err) with err.message
2010-02-02 21:44:11 +01:00
Florian Schlachter
a2d8b0ffbe
Merge remote branch 'hmarr/master'
2010-02-02 18:49:52 +01:00
Harry Marr
0bbf3a3d76
Fixed EmbeddedDocument validation bug
2010-02-02 17:37:09 +00:00
Florian Schlachter
10de19d38b
be kind and also accept an integer for a float field (so e.g. mymodel.floatfield = 9 is possible, instead of mymodel.floatfield = 9.0)
2010-01-31 18:06:25 +01:00
Florian Schlachter
73aff806f3
reset to master, keep working on the dirty-fields-patch in another branch
2010-01-31 18:00:01 +01:00
Florian Schlachter
963a223e7e
Merge remote branch 'hmarr/master'
...
Conflicts:
mongoengine/queryset.py
2010-01-31 17:43:56 +01:00
Florian Schlachter
bbfc2f416e
keep track of dirty fields is still work in progress; EmbeddedDocuments still aren't tracked (TBD)
2010-01-31 15:43:40 +01:00
Harry Marr
e05d31eaaf
Added get{,_or_create} docs
2010-01-31 13:47:27 +00:00
Florian Schlachter
431f006751
new save() method updates only dirty fields. fixes issue #18
2010-01-31 14:40:00 +01:00
Harry Marr
ffc9d7b152
Merge branch 'master' of git://github.com/flosch/mongoengine
...
Added unit test for get_or_create, merged flosch's get with
punteney's get.
Conflicts:
mongoengine/queryset.py
2010-01-31 13:24:50 +00:00
Harry Marr
79604180db
Merge branch 'master' of git://github.com/punteney/mongoengine
2010-01-31 13:11:20 +00:00
Florian Schlachter
7d6e117f68
added get-method to fetch exactly one document from the collection. catching pymongo's ObjectId-errors and raising mongoengine's ValidationError instead.
2010-01-31 01:11:37 +01:00
Florian Schlachter
b3cc2f990a
improved get_or_create
2010-01-30 22:01:43 +01:00
Florian Schlachter
8d953f0bcb
Added get_or_create-method
2010-01-30 21:12:46 +01:00
Harry Marr
5cac52720c
Fixed querying on ReferenceFields using primary key
2010-01-27 15:57:11 +00:00
Harry Marr
bca6119db8
Minor tidyup
2010-01-26 19:36:19 +00:00
Harry Marr
568000805f
EmbeddedDocuments may now be non-polymorphic
2010-01-25 01:00:04 +00:00
blackbrrr
3fb6307596
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-01-23 18:41:52 -06:00
blackbrrr
7aa0031dec
reset
2010-01-23 15:39:26 -06:00
Harry Marr
2585f1b724
queryset_manager funcs now accept doc as arg
2010-01-23 17:16:01 +00:00
Harry Marr
470e08f616
exec_js functions now acknowledge Q objects
2010-01-23 03:05:27 +00:00
blackbrrr
f1e51f9708
Merge branch 'master' of git://github.com/hmarr/mongoengine into deferred_fields
2010-01-19 12:27:14 -06:00
James Punteney
e0becc109d
Adding tests to test the get query
2010-01-16 14:51:13 -05:00
James Punteney
47e4dd40cd
Making the query actually get called for get
2010-01-16 13:24:10 -05:00
James Punteney
c38faebc25
Adding a get method to the queryset that raises exceptions if more or less than one item is returned
2010-01-16 13:21:16 -05:00
Harry Marr
21b7d8f8ea
Bump to v0.2.2
2010-01-16 16:42:51 +00:00
Harry Marr
3357b55fbf
Indexing on ListFields now works properly
2010-01-16 15:35:01 +00:00
Harry Marr
f01add9ef5
Moved sections from user guide to separate pages
2010-01-16 14:06:45 +00:00
blackbrrr
b0b8e11c60
Merge branch 'master' into deferred_fields
2010-01-14 11:39:09 -06:00
blackbrrr
7e0fcb9e65
groundwork for deferred fields
2010-01-14 11:39:03 -06:00
blackbrrr
972235cf06
added build, dist, egg dirs to .gitignore
2010-01-14 11:37:07 -06:00
blackbrrr
b3c9a76619
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-01-14 11:32:39 -06:00
blackbrrr
5f84d6f8f8
added URLField, DecimalField, tests.
2010-01-14 11:32:28 -06:00
blackbrrr
1cdeb8130d
ObjectIdField.to_python returns pymongo.objectid.ObjectId
2010-01-14 11:32:01 -06:00
Harry Marr
ce69428cc6
Moved validate() to BaseDocument
2010-01-13 16:41:57 +00:00
Harry Marr
1818cf7114
Added q_objs to __call__ args
2010-01-12 18:33:33 +00:00
blackbrrr
b375c41586
added Q object support to QuerySet.filter
2010-01-12 12:19:59 -06:00
blackbrrr
d85ee4e051
fixed merge conflict in BaseField.__init__
2010-01-12 12:19:30 -06:00
blackbrrr
cfc394963f
added queryset chaining via 'filter' method. test included.
2010-01-12 12:16:15 -06:00
Harry Marr
e7380e3676
Bump to v0.2.1
2010-01-11 16:14:03 +00:00
Harry Marr
597ef8b947
Merge branch 'master' of git@github.com:hmarr/mongoengine
2010-01-11 04:44:13 +00:00
Harry Marr
484bc1e6f0
Added a MongoEngine backend for Django sessions
2010-01-11 04:43:17 +00:00
Harry Marr
afd416c84e
Updated docs, added force_insert to save()
2010-01-11 04:15:36 +00:00
Harry Marr
84d7987108
Added prepare_query_value for a couple of fields
2010-01-10 21:01:00 +00:00
Harry Marr
ec927bdd63
Added support for user-defined primary keys (_ids)
2010-01-10 17:13:56 +00:00
Harry Marr
df7d4cbc47
Bump to v0.2
2010-01-10 03:04:46 +00:00
Harry Marr
dc51362f0b
Merge branch 'master' of git://github.com/punteney/mongoengine
2010-01-09 22:31:28 +00:00
Harry Marr
da2d282cf6
Added Q class for building advanced queries
2010-01-09 22:19:33 +00:00
James Punteney
3b37bf4794
Adding __repr__ methods to the queryset and BaseDocument to make it easier to see the results in the console
2010-01-09 10:48:05 -05:00
Harry Marr
42a58dda57
Added update() and update_one() with tests/docs
2010-01-08 18:39:06 +00:00
Harry Marr
4d695a3544
Added single and multifield uniqueness constraints
2010-01-08 12:04:11 +00:00
Harry Marr
45080d3fd1
Merge branch 'master' of git://github.com/blackbrrr/mongoengine
...
_types index prepended to user defined indexes
Conflicts:
mongoengine/queryset.py
2010-01-08 06:00:35 +00:00
blackbrrr
9195d96705
added default ordering to meta options, included docs and tests
2010-01-07 23:08:33 -06:00
Harry Marr
54d276f6a7
Added index for _types
2010-01-08 04:49:14 +00:00
blackbrrr
2a7fc03e79
fixed merge conflict in queryset.py, used hmarr's code
2010-01-07 20:23:11 -06:00
Harry Marr
eb3e6963fa
Index specs now use proper field names
2010-01-08 00:15:20 +00:00
Harry Marr
960aea2fd4
Added indexes and Django use to docs
2010-01-07 23:54:57 +00:00
Harry Marr
ef5815e4a5
Bump to v0.1.3
2010-01-07 22:49:24 +00:00
Harry Marr
b7e8108edd
Added docs about using MongoEngine with Django
2010-01-07 22:48:39 +00:00
Harry Marr
d48296eacc
Added create_user method to Django User model
2010-01-07 22:25:26 +00:00
Harry Marr
e0a546000d
Added Django authentication backend
2010-01-07 18:56:28 +00:00
Harry Marr
4c93e2945c
Added test for meta[indexes]
2010-01-07 15:46:52 +00:00
blackbrrr and Harry Marr
a6d64b2010
added meta support for indexes ensured at call-time
2010-01-07 23:28:10 +08:00
Harry Marr
2e74c93878
Minor bugfixes
2010-01-07 15:24:52 +00:00
Harry Marr
f86496b545
Bump to v0.1.2
2010-01-06 03:23:02 +00:00
Harry Marr
557fb19d13
Query values may be processed before being used
2010-01-06 03:14:21 +00:00
Harry Marr
196f4471be
Made connection lazy
2010-01-06 00:41:56 +00:00
blackbrrr
ccb4827ec9
added meta support for indexes ensured at call-time
2010-01-05 14:28:24 -06:00
Harry Marr
4ae21a671d
Document dict access now only looks for fields
2010-01-05 19:37:30 +00:00
Harry Marr
af1d7ef664
Added BooleanField
2010-01-05 18:17:44 +00:00
blackbrrr
bb4444f54d
Merge branch 'master' of git://github.com/hmarr/mongoengine
2010-01-05 12:00:07 -06:00
Harry Marr
3bead80f96
Added Document.reload method
2010-01-05 00:25:42 +00:00
blackbrrr
8ad0df41a0
merged hmarr's updates
2009-12-19 14:31:17 -06:00
blackbrrr
aa9cba38c4
added 'ensure_index' and 'order_by' methods to queryset.
2009-12-18 11:35:26 -06:00
blackbrrr
12a7fc1af1
removed reliance on '_cls' in document; fields only parsed if '__class__' present, allowing inner classes and non-field attributes on a document
2009-12-18 11:34:32 -06:00