﻿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 `float(""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"")`.

See PR: https://github.com/django/django/pull/14706"	Bug	closed	Database layer (models, ORM)	3.2	Normal	wontfix	db Q	Steven Jin	Unreviewed	1	0	0	0	0	0
