Lake Chan
Lake Chan
``` class Post: author = ListField(CustomDictField()) Post.objects.insert([Post(author={"a": 1})]) ``` This will insert a dict value to author field in document
目前正在使用v2ray的路由功能,打通两个异地内网,但v2ray_dst_direct_v4直接过滤掉了内网段的dst 希望可以在web ui中支持自定义这些内置的ipset,来做一些细粒度的自定义
``` Traceback (most recent call last): File "/project/venv/lib/python3.4/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/project/venv/lib/python3.4/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/project/venv/lib/python3.4/site-packages/flask/app.py", line 1741, in handle_exception...
GridFS data blocks delete by: https://github.com/MongoEngine/mongoengine/blob/92f6fce77d12f930333bd8980fa611627d3a8d1b/mongoengine/document.py#L642-L644 then https://github.com/MongoEngine/mongoengine/blob/92f6fce77d12f930333bd8980fa611627d3a8d1b/mongoengine/fields.py#L1839-L1844 So calling Document.delete() won't ran into this issue, but cascade delete will, because: https://github.com/MongoEngine/mongoengine/blob/161493c0d24c4f23d4d576f7171e78f0e62cdd70/mongoengine/queryset/base.py#L505-L509 this will call pymongo's delete directly, which will...
This resolve issue https://github.com/MongoEngine/mongoengine/issues/2433 Feel free to make changes directly.
```Python import unittest from mongoengine import DynamicDocument, connect from mongoengine.fields import StringField class User(DynamicDocument): username = StringField(required=True) pa_id = StringField(required=True, regex=r'(^PA\d\d\d\d$)') class Test(unittest.TestCase): def setUp(self) -> None: connection = connect(db='mongotest',...
Fix for issue https://github.com/MongoEngine/mongoengine/issues/2429
# Description Automatic release script, it will: 1. Updating `./VERSION` automatically 2. Updating `./meson.build` automatically 3. Adding stub release description to `./data/com.usebottles.bottles.metainfo.xml.in` 4. open vim and jump to the stub...