#11753: Q objects using callables won't combine in 2.4
------------------------------------------+---------------------------------
 Reporter:  alexr                         |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.1       
 Keywords:  Q                             |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 This causes a stack trace in 2.4 only.
 {{{
 #in python2.4
 from django.db.models import Q

 def a():
     return None

 Q(test=a)|Q(test=1)
 }}}

 This looks to be hitting the same python deepcopy bug as #5505.

 This only happens if the callable parameter is first.
 For example (using same function as above):
 {{{
 Q(test=1)|Q(test=1) #OK
 Q(test=1)|Q(test=a) #OK
 Q(test=a)|Q(test=1) #Bad
 Q(test=a)|Q(test=a) #Bad
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11753>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to