#7734: python2.3 compatibility bug in query.py
---------------------------+------------------------------------------------
 Reporter:  mage           |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 When trying to merge different ValueListQuerySets or ValueQuerySets using
 the "&" operator django does a sanity check using the set() function which
 isnt directly available in python2.3.

 Traceback is as follows:

 {{{
 Traceback:
 File "/usr/lib/python2.3/site-packages/django/core/handlers/base.py" in
 get_response
   86.                 response = callback(request, *callback_args,
 **callback_kwargs)
 File "/usr/lib/python2.3/site-
 packages/django/contrib/admin/views/decorators.py" in _checklogin
   62.             return view_func(request, *args, **kwargs)
 File "/usr/local/web/dev/sites/bwe/projects/adminviews.py" in mailgroepen
   25.         addressen = A.objects.values_list('naam','email') &
 B.objects.values_list('naam','email') &
 C.objects.values_list('naam','email') &
 D.objects.values_list('naam','email')
 File "/usr/lib/python2.3/site-packages/django/db/models/query.py" in
 __and__
   227.         self._merge_sanity_check(other)
 File "/usr/lib/python2.3/site-packages/django/db/models/query.py" in
 _merge_sanity_check
   668.         if (set(self.extra_names) != set(other.extra_names) or

 Exception Type: NameError at /url/
 Exception Value: global name 'set' is not defined
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7734>
Django Code <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