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
Hamidreza
4c054bf316
Fix indentation in LazyReferenceField ref doc
2019-02-13 21:27:54 +03:30
Hendri Karisma
a32c893078
in the mid DictField key can accept dollar sign
2018-12-19 20:24:28 +01:00
Bastien Gérard
23324f0f87
minor fix in ImageField docstring
2018-11-04 22:14:27 +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
8e1c4dec87
Merge pull request #1846 from bagerard/fix_validator_of_binary_field
...
fix validator of BinaryField
2018-10-26 22:14:08 +02:00
Bastien Gérard
59a06a242d
Fix a bug when using a ReferenceField(AbstractClass) #1920
2018-10-15 22:32:11 +02: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
Bastien Gérard
adfb039ba6
Improve overall code quality (based on pylint findings)
2018-10-07 23:05:18 +02:00
Bastien Gérard
45c2151d0f
Fix side effect of no_dereference on GenericReferenceField
2018-09-25 22:56:57 +02:00
erdenezul
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
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
Bastien Gérard
4314fa883f
improve 2-3 codebase compatibility
2018-09-09 23:32:10 +02:00
erdenezul
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
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
a25d127f36
Remove DictField.basecls related code, it is useless
2018-09-04 20:51:06 +02: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
Bastien Gérard
ab08e67eaf
fix inc/dec operator with decimal
2018-09-04 14:53:55 +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
Bastien Gérard
5e4e8d4eda
Merge branch 'master' of github.com:KCarretto/mongoengine
2018-09-01 12:04:23 +02: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
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
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
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
Benjamin Chrobot
49bff5d544
Add documentation for LazyReference and GenericLazyReference fields.
2018-04-12 10:47:52 -04:00
Stefan Wojcik
dabe8c1bb7
highlight places where ValidationError is raised outside of validate() method
2018-03-14 14:26:46 -04:00
KCarretto
2d76aebb8e
Fixed formatting issue
2018-02-21 05:02:35 -05:00
swathi
8b5df3ca17
fix - allow url with underscore in domain
2018-02-08 12:31:40 -08:00
Erdenezul
101947da8b
update fields argument when given #1172
2017-12-23 00:00:57 +08:00
Erdenezul Batmunkh
b35efb9f72
fix validatione error for invalid embedded document instance #1067
2017-12-01 08:37:53 +08:00
Emmanuel Leblond
e74f659015
Improve LazyReferenceField and GenericLazyReferenceField with nested fields
2017-11-22 11:44:49 +01:00
Emmanuel Leblond
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
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
Erdenezul
aa4996ef28
fix bug query subfield in generic_embedded_document #1651
2017-09-15 11:18:24 +08:00
Srinivas Reddy Thatiparthy
dc8a64fa7d
Add missing dunder method - __ne__ to the class GridFSProxy class
2017-08-25 22:02:47 +05:30
Alex Xu
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
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
2f1fe5468e
Fix empty string casted to datetime today in DateTimeField ( #1533 )
2017-05-12 12:59:14 -04:00
Stefan Wojcik
009059def4
revert #1497
2017-05-07 21:29:13 -04:00
Artemiy
bd4a603e16
Use De Morgan's laws to simplify an expression. ( #1531 )
2017-04-20 10:27:37 -04:00
Stefan Wójcik
466935e9a3
Unicode support in EmailField ( #1527 )
2017-04-16 13:58:58 -04:00