Say for example you have two models:

Article
Category


Articles can have multiple categories.

How would you go about finding the Articles that contain only a
certain set of Categories?

The 'in' operator doesn't do me any good. Excludes look like they are
needed...


I'm in a situation where quickly sorting by SETS of categories is
needed and I'm having a tough time. My database programming skills are
pretty weak.

I'm thinking of making an intermediate model called CategorySets.

Articles would then have a relationship to a CategorySet and I can
sort very easily on this.


(note my actual project isn't using Articles but it's quicker to
explain in these terms).

Does anyone have any tips or experience here?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to