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
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
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
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
Bastien Gérard
ab08e67eaf
fix inc/dec operator with decimal
2018-09-04 14:53:55 +02: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
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
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
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
a7852a89cc
Fixes 2 bugs in no_subclasses context mgr (__exit__ swallows exception + repair feature)
2018-09-01 23:30:50 +02: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
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
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
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
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
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
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
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
9ad959a478
Merge pull request #1845 from bagerard/clean_dead_code
...
remove dead code
2018-08-26 08:33:20 +08:00
erdenezul
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
Bastien Gérard
a7658c7573
fix BaseList.__iter__ operator ( #1305 ) + minor improvements
2018-08-25 16:33:43 +02:00
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
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
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
fdba648afb
fix pypi trigger
2018-07-16 09:19:50 +08:00
Tony Narlock
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
3cb6a5cfac
Merge pull request #1575 from zetaben/master
...
Make queryset aggregates obey read_preference
2018-05-24 22:23:49 +08:00
Erdenezul Batmunkh
8739ab9c66
fix syntax #1338
2018-05-23 15:59:18 +08:00
Erdenezul Batmunkh
446c101018
dont call ensure_indexes on slave #1338
2018-05-23 15:53:30 +08:00
erdenezul
7fb1c9dd35
Merge branch 'master' into master
2018-05-21 16:22:07 +08:00
erdenezul
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
d424583cbf
fix flake8 error #1371
2018-05-21 16:06:04 +08:00