Taggit filter objects

58 views
Skip to first unread message

alternate

unread,
Feb 28, 2014, 1:57:39 PM2/28/14
to django...@googlegroups.com
I got objects like these (constant number of Article objects)

Article1 (Tag1, Tag2, Tag3)
Article2 (Tag3, Tag4, Tag5)
Article3 (Tag1,Tag2, Tag6)

and another type of objects (count - N):

Video1(Tag1)
Video2(Tag7,Tag8)
Video3(Tag5,Tag6)

And i want to get as output objects who got same tags, ordered by amount of similar tags:
Video1, Video3


How can i filter down Video objects, regarding to Article objects?

Reply all
Reply to author
Forward
0 new messages