> Can you include the code for your CustomManager.open() method? class OpenEntries(models.Manager): def open(self): now = datetime.now() entries = super(OpenEntries, self).get_query_set().filter(dispDate__lte=now).filter(isOpen=True) return entries
datetime is imported above that, and then the manager is attached to the Entry model like so: objects = OpenEntries() and called in a view as: auth = SomeAuthor entries = auth.entry_set.open() Am I wrong to think this that entry_set has already filtered the query for a particular author, before it ever gets to the open() method? Thanks! Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---