Closed obmarg closed 6 years ago
Can you write a simple test or paste a trace exception?
In case it wasn't obvious from the test - _created
does get set correctly. It doesn't seem to get to the same point of register_column
that I pointed out earlier, though I haven't figured out why.
Any updates on this?
+1 on this
I've been able to confirm this myself and adapted the testcase given by @obmarg to the current master, see https://github.com/dkellner/eve-sqlalchemy/tree/fix-sqlalchemy-default.
We've been using eve-sqlalchemy to provide a REST API as part of a larger project, and have found that it breaks the behaviour of setting a default on a column.
Pretty sure it's this code that's to blame: https://github.com/RedTurtle/eve-sqlalchemy/blob/056b6ca836def3fb396ea3a015a04a016d601db2/eve_sqlalchemy/decorators.py#L150-L152