I have an events model, and a feed for it - shows all events

Events has a foreign key relationship with Club. What I'd like to do
is have a feed for each club, but I'm not sure how to get that into a
feed without explicitly defining it for each club.

Say I have two clubs, Foo and Bar, I want something in feeds.py like:
    def items(self):
        return Event.objects.filter(club=theClub).order_by('-created')

where theClub is Foo, or Bar, or whatever.

Can I do this with the built-in feeds framework?


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