Re: [Sqlalchemy-tickets] [sqlalchemy] #2914: sqlalchemy.orm.mapper.Mapper.attrs doesn't maintain or
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-01-21 15:11:39
|
#2914: sqlalchemy.orm.mapper.Mapper.attrs doesn't maintain order
-----------------------------------+----------------------------------
Reporter: tisdall | Owner: zzzeek
Type: defect | Status: closed
Priority: low | Milestone: 0.9.xx
Component: orm | Severity: minor - half an hour
Resolution: worksforme | Keywords:
Progress State: completed/closed |
-----------------------------------+----------------------------------
Comment (by zzzeek):
safest bet is to stick with _creation_order as above for now, sort by that
as you pull off of mapper.attrs. Since there's really no other thing you
can "order by" on a Python class.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2914#comment:8>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|