[sqlalchemy] Filtering by a foreign key (now, without typo).

2011-02-12 Thread Hector Blanco
Sorry... I just sow a typo: Hello everyone. I am trying to get classes whose foreign key is whatever but I always get all the entries in the database, instead of the ones that match the criterion. Let's say I have a couple of classes using declarative base in a relationship N:1. I have that

[sqlalchemy] Filtering by a foreign key.

2011-02-12 Thread Hector Blanco
Hello everyone. I am trying to get classes whose foreign key is whatever but I always get all the entries in the database, instead of the ones that match the criterion. Let's say I have a couple of classes using declarative base in a relationship N:1. I have that modeled like: class