Igor Derkach
Igor Derkach
There is no way to set CustomRole participants in CreateTickets template This commit allows to write something like: `CustomRole-Foo: [email protected], [email protected]`
`symbol_wrap` jinja2 filter now is used for word wrap python code during migration generation. But it wraps lines by commas, which could break python code, if such comma will be...
When we have unset `allow_inheritance` in Document `meta` dict, we get an error while running migration: ``` [DEBUG] >> Change 'inherit': True => Traceback (most recent call last): File "mongoengine_migrate/cli.py",...
It's more convenient to work with graph using dict protocol. Now it implements list protocol. It should be smth like {migration_name: MIgration_object}.
`UUIDField` has `binary` parameter (default `True`) which designates if UUID value stores in db as bson Binary or as string. `UUIDFieldHandler.change_binary` already exists, but does nothing. It's needed to implement...
`SequenceField.value_decorator` uses to get next sequence value. By default it is `int()`. But the user could set custom decorator function. We cannot do smth with this change, but it's reasonable...
`BinaryFieldHandler.change_max_bytes` invokes when `BinaryField.max_bytes` changes its value. Now this method does nothing. It's needed to add binary document field value cutting in "by_doc" callback.
`URLField` has `url_regex` attribute with default value described in `URLField._URL_REGEX` constant. It's needed to implement "change" method in `URLFieldHandler` which will get invoked if user modified `url_regex` attribute value. It...
Field declaration can contains `choices` attribute which sets possible values which this field can have. `choices` in turn can be an array of any value including `Document` and `EmbeddedDocument` classes....
CreateDocument.run_backward and DropDocument.run_forward methods drop documents from database while migration run. But now they not consider model inheritance, and therefore drop all documents. It's needed to add inheritance (`_cls` field)...