I'm not sure I follow you completely, but I think my blog post on the
subject of finding lookup items that are not being used may get you
going in the right direction.

http://blog.michaeltrier.com/2007/8/12/finding-lookup-items-that-are-not-used

I hope it helps.

Michael

On Nov 23, 2007 5:54 AM, Manakel <[EMAIL PROTECTED]> wrote:
>
> Hello Dear All,
>
> I have the following models
>
> A --is linked via A-LINKS-- to B --is linked via B-LINKS to C.
>
> where A,B,C are models (ie Requirement, Test,Defect)
> and A-LINKS is a N-N relationship between A & B using a third party
> object. (intermediate table)
> and B-LINKS is a N-N relationship between B & C using a third part
> object. (intermediate table)
>
> I need to be able to query
> 1)A object that have no relationship with B Object
> (eg Requirement without Test)
> 2) B Object that have no relationship with C Object
> (eg Test without Defects)
> 3) A Object without relationship with C Object
> (eg Requirement without a Defect via a Test)
>
> I'm able using __XX__ syntax to queries Requirement THAT DOES have a
> TEST but i don't understand how to negate the query.
>
> I hope i'm not too confusing  :-)
>
> >
>

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

Reply via email to