foreign(), remote() annotations dont work for instrumented attribute cols

Issue #2493 resolved
Mike Bayer repo owner created an issue
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base

Base= declarative_base()

class Foo(Base):
    __tablename__ = 'foo'
    id = Column(Integer, primary_key=True)

# breaks
foreign(Foo.id)

#breaks
remote(Foo.id)

Comments (2)

  1. Log in to comment