Re: [Sqlalchemy-tickets] [sqlalchemy] #2733: using backref raises AttributeError when querying colu
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-05-27 22:17:35
|
#2733: using backref raises AttributeError when querying column-based entities
[declarative extension]
-----------------------------------+------------------------------------
Reporter: andrija | Owner: zzzeek
Type: defect | Status: closed
Priority: lowest | Milestone:
Component: declarative | Severity: no triage selected yet
Resolution: worksforme | Keywords:
Progress State: completed/closed |
-----------------------------------+------------------------------------
Changes (by zzzeek):
* status: new => closed
* resolution: => worksforme
* status_field: awaiting triage => completed/closed
Comment:
this is just mappers not getting configured, and your relationship is
declared as a backref. you can refer to columns before this occurs for
mapping purposes.
add
{{{
from sqlalchemy.orm import configure_mappers
configure_mappers()
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2733#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|