]> git.aero2k.de Git - sirius.git/commit
Fix direction of friend's printers ownership.
authorTom Hunger <tehunger@gmail.com>
Tue, 10 Mar 2015 10:43:23 +0000 (10:43 +0000)
committerTom Hunger <tehunger@gmail.com>
Tue, 10 Mar 2015 10:43:23 +0000 (10:43 +0000)
commit675ce934ac4f323e261e3be427396a3d3705922b
treec751ba45d2608eb668decb847a030ff14c5ec613
parent786f5014e869a173349fa8a528b05de3adfd1bca
Fix direction of friend's printers ownership.

We used to be able to print on printers of people we follow on twitter
but that makes no sense: we want only people *we* follow intentionally
to be able to print on our printers.

This implementation is slow-ish but I added a test case so we can replace
the slow query with a N:M relationship in sqlalchemy in the future.
sirius/models/user.py
sirius/web/test_friends.py [new file with mode: 0644]