SQLAlchemy column_property and Sprox

9 views
Skip to first unread message

Nilesh

unread,
Feb 24, 2020, 1:01:09 AM2/24/20
to TurboGears
Hi,

I just got started with TurboGears defined a few models. In one of the models I defined a column_property:

class Server(DeclarativeBase):
  ...
  ipaddr = Column(postgresql.INET)
  ip_family = column_property(func.family(ipaddr))

When I visited /admin it was giving me error "Neither Label nor Comparator object contains info".
It seems in Sprox code it tries to access column.info['title'] to get the title of field. I tried setting info={'title': 'IP_FAMILY'} in column_property as per SQLAlchemy docs but it didn't work.
Reply all
Reply to author
Forward
0 new messages