#12538: Removal (rename) of BaseQuery in SVN version causes ImportError for
previously pickled Querysets
---------------------------+------------------------------------------------
 Reporter:  snow0x2d0      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 The issue seems to be that pickling a Queryset's query attribute per the
 documentation pickles a BaseQuery object. With Query taking the place of
 BaseQuery in the current svn version an attempt to unpickle a pickled
 BaseQuery object results in an import error. I don't have a particularly
 deep understanding of how cPickle and pickle work but my guess is that
 pickle attempts to instantiate a new object based on the pickled object's
 {{{__module__}}} and {{{__class__}}} values. If there isn't a simple fix
 for this it seems the documentation should at least be ammended to warn of
 the issue.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12538>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.


Reply via email to