﻿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
13579	None gets ignored by __in filter	Martin Chase	Filip Gruszczyński	"{{{
from django.db import models

class A(models.Model):
  b = models.ForeignKey(B, null=True)

class B(models.Model):
  pass

for _ in range(0,10):
  A.objects.create()

b = B.objects.create()
A.objects.create(b=b)

A.objects.filter(b=None).count()  # => 10
A.objects.filter(b__in=[None,]).count() # => 0 (should be 10)
A.objects.filter(b__in=[None,b]).count() # => 1 (should be 11)
A.objects.filter(b__in=[b,None]).count() # => 1 (should be 11)
}}}

I haven't tested with the above code exactly, but this is the failing behavior I'm seeing."	Bug	closed	Database layer (models, ORM)	1.2	Normal	duplicate			Accepted	1	0	0	1	0	0
