Re: [sqlalchemy] Does anyone know how to handle "NoSuchColumnError"

2015-05-02 Thread Ofir Herzas
Hi Michael, Thank you very much for your fast response. I will give it a try. I tried to remove unneeded stuff but I think that the problem is in the track_changes mixin as I never got this error before using it. If you need more stuff or do find something, I'd be happy to know. BTW: for initial

Re: [sqlalchemy] declared_attr column not work with UniqueConstraint with SA >= 1.0

2015-05-02 Thread Mike Bayer
On 5/2/15 5:00 AM, uralbash wrote: Hello, I have the following code, which sets UniqueConstraint using fields ("foo", "bar") from inherit class. | fromsqlalchemy.ext.declarative importdeclarative_base,declared_attr fromsqlalchemy importColumn,Integer,Unicode,UniqueConstraint Base=declarati

[sqlalchemy] declared_attr column not work with UniqueConstraint with SA >= 1.0

2015-05-02 Thread uralbash
Hello, I have the following code, which sets UniqueConstraint using fields ("foo", "bar") from inherit class. from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy import Column, Integer, Unicode, UniqueConstraint Base = declarative_base() class Foo(objec