id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 17930,Error in Queryset with operator | (union queryset) + slice,vini.gracindo@…,Ian Foote,"{{{ class Example: name = models.CharField(max_length = 30) public = models.BooleanField() }}} {{{ >>> Example.objects.create('example 1', False) >>> Example.objects.create('example 2', False) >>> Example.objects.create('example 3', True) >>> Example.objects.create('example 4', True) >>> Example.objects.create('example 5', False) >>> query = Example.objects.filter(public = True) >>> if(query.count() < 3): ... query = query | Example.objects.filter(public = False).order_by('?')[:1] ... >>> query.count() 5 >>> }}} When using the union of querysets to slice it ""ignores"" the slice and takes all objects where {{{public = false}}}. ",Bug,closed,"Database layer (models, ORM)",1.3,Normal,fixed,"queryset union, slice",,Ready for checkin,1,0,0,0,0,0