[sqlalchemy] Define a model as a subset of table data

2014-09-30 Thread katie louise
SQLAlchemy newbie here. I'm trying to define a model (subclassed by another model) that represents a subset of table data of the parent model. Specifically, I want the subclass to map the most recent row for a given ID. For example, suppose I have the following model: class

Re: [sqlalchemy] Define a model as a subset of table data

2014-09-30 Thread Michael Bayer
On Sep 30, 2014, at 4:48 PM, katie louise klavent...@gmail.com wrote: SQLAlchemy newbie here. I'm trying to define a model (subclassed by another model) that represents a subset of table data of the parent model. Specifically, I want the subclass to map the most recent row for a given