﻿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
32967	"Buggy Migrations when `flota(""nan"")` in `Q` objects"	Steven Jin	Steven Jin	"When creating a `CheckConstraint` in the form 

{{{#!python
class MyModel(Model):
  x = FloatField()
  class Meta:
    constraints = [~CheckConstraint(check=Q(x=float(""nan"")), name=""some constraint"")]
}}}

This constraint is removed and added back every time `python manage.py makemigrations` is run. This is because the inherited `__eq__` function of `Q` objects does not take into account the fact that `float(""nan"") != float(""nan"")`.
"	Bug	assigned	Database layer (models, ORM)	3.2	Normal		db Q		Unreviewed	0	0	0	0	0	0
