On Thu, Feb 5, 2009 at 6:38 PM, Justin Bronn <[email protected]> wrote:

>
> > Is there a way that default managers can be taken into
> > consideration when filtering through related fields?  I don't know
> > exactly how this is supposed to work, is this the desired behavior?
> >
>
> It's not a bug, it's a feature :) Specifically, it's an artifact from
> the 'fix' in #7666 -- fortunately, there's a way simple way to
> override, but it'll require a simple sublcass of CurrentSiteManager:
>
> class MySiteManager(CurrentSiteManager):
>    use_for_related_fields = True
>
> That should be it.
>
> Regards,
> -Justin
> >
> Justin, I don't think that's correct.

That would be true if the issue was user_obj.photos.all(), but that's not
the scenario he's describing.

Alex


-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to