kiddouk / redisco

A Python Library for Simple Models and Containers Persisted in Redis
MIT License
438 stars 78 forks source link

Allow for callable defaults. #27

Closed blamarvt closed 8 years ago

blamarvt commented 11 years ago

For example, a method which returns str(uuid.uuid4()) could be set as the default for an attribute.

stuaxo commented 8 years ago

I tried grabbing these changes + merging with my CI fixes + the tests pass again.

https://travis-ci.org/stuaxo/redisco/builds/130591205

kiddouk commented 8 years ago

Trusting @stuaxo on this one and merging.