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
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
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
Omer Katz
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
Richard Fortescue-Webb
58f293fef3
Allow ReferenceFields to take ObjectIds
2017-03-29 10:34:50 +01: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
6810953014
added OrderedDynamicField class to store data in the defined order because of #203
2017-02-28 03:34:42 +00:00
Stefan Wójcik
3f31666796
Fix the exception message when validating unicode URLs ( #1486 )
2017-02-24 16:18:34 -05:00
martin sereinig
d8a7328365
Fix docs regarding reverse_delete_rule and delete signals ( #1473 )
2017-02-06 14:11:42 -07:00
Manuel Jeckelmann
9f4b04ea0f
Fix querying an embedded document field by an invalid value ( #1440 )
2016-12-22 13:19:18 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Omer Katz
0be6d3661a
Merge branch 'master' of git://github.com/mrTable/mongoengine
2016-12-11 10:52:08 +02:00
Stefan Wójcik
1b9432824b
Add ability to filter the generic reference field by ObjectId and DBRef ( #1425 )
2016-12-09 12:56:06 -05:00
Дмитрий Янцен
7ce8768c19
Added rounding for unicode return value of to_mongo in DecimalField. Closes #1103
2016-12-06 10:42:10 +05:00