Been thinking about how I could do this for a while now to no avail,
so maybe one of you can help me out.  I have a m2m with intermediate
model like so:

class Venue(models.Model):
    ...

class Artist(models.Model):
    ...

class Event(models.Model):
    venue = models.PrimaryKey(Venue)
    ...

class Performance(models.Model):
    event = models.PrimaryKey(Event)
    artist = models.PrimaryKey(Artist)
    ...

I would like the functionality to get a queryset of Venues from a
Performance manager.  For instance, so I can do something like:

>>> beatles.performance_set.get_venues().exclude(name='Crappy Venue')

Anyone have any suggestions?
Scott


--~--~---------~--~----~------------~-------~--~----~
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