Improve sqlalchemy filter rules
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Sun, 23 Dec 2012 11:08:51 +0000 (12:08 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Sun, 23 Dec 2012 11:08:51 +0000 (12:08 +0100)
commit2fb36dac31c56d95a0cadeffe9e57029e35d62ea
treee9d719f405cf4c1b67b024c9d8cd0dc687013061
parentcfa922295e5ddfaab336a3c2c0403422f77758b6
Improve sqlalchemy filter rules

Thanks to Elrond's review. 1) Use filter_by more consistently
rather than mixing filter and filter_by. 2) Add multiple AND
conditions in the same filter rule rather than using separate
ones. 3) The atom feeds used filter_by(Modelname.attr == ...)
which was the wrong pattern, of course.

Thanks for repairing my junk Elrond!

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/user_pages/views.py