humbledb icon indicating copy to clipboard operation
humbledb copied to clipboard

Default values for Embed

Open mwf opened this issue 10 years ago • 0 comments

Hi!

I wonder if I can set default values for embeded docs (https://humbledb.readthedocs.org/en/latest/tutorial.html#giving-documents-default-values)

Example:

class Foo(Document)
    bar = "bar", 321  // this works well
    a = EmbedDoc("a")
    a.buz = "buz", lambda: 123  // this does not work

mwf avatar Mar 16 '15 12:03 mwf