I have two models

class Meet(models.Model):
  submitted=models.BooleanField(default=False)

class MeetParticipationSession(models.Model):
  meet=models.ForeignKey(Meet)
  submitted=models.BooleanField(default=False)

question 1: How do i find Meet objects that don't have a MeetSession
pointing to them. In SQL I would do it as follows:
select a.* from meet_meet a where a.id not in (select distinct
b.meet_id from meet_meetparticipationsession b)

question 2: How do I find all the meets that have been submitted minus
those for which there is a meet participation session  that has been
submitted.

Thanks,

-Adi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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