Select objects linked over many-to-many relation (not ManyToManyField)

7 views
Skip to first unread message

muzhig

unread,
Jun 21, 2011, 1:57:21 AM6/21/11
to django...@googlegroups.com
I have models: User and Photo
User can "like" photos. So I have another model, Like, that has foreign keys to User and Photo.

I cannt figure out howto filter all Users that liked one photo

Kenneth Gonsalves

unread,
Jun 21, 2011, 2:01:01 AM6/21/11
to django...@googlegroups.com

it would be easier if you paste the models.
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

Reply all
Reply to author
Forward
0 new messages