On Mon, Jul 7, 2008 at 8:29 PM, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Currently, ReverseSingleRelatedObjectDescriptor uses _default_manager, > which is the problem (line 239 in django/db/models/related/fields.py). > One clean solution would be to give each model a _pristine_manager > attribute, which would be *guaranteed* to be a simple Manager() > instance -- i.e., not a custom one. Then we could use > _pristine_manager here, in this case.
Why bother with the overhead of creating and maintaining an entire Manager instance, when what's really wanted is a pristine QuerySet? That can be obtained by the simple expedient of qs = QuerySet(whatever_model_this_should_be) and doesn't come with any baggage. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---