﻿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
32882	Problems when comparing two fields with None value using F() in Case()	Jonathan Souza	nobody	"Problems when comparing two fields in an annotate.

when = ~Q(**{ 'name' : 
                F('order_process__name') })

annotate = {
            'has_name_divergence': Case(
                When(when, then=True),
                default=False,
                output_field=CharField(),
            ),
        }

When both fields have None value, the case result is true.
None != None 
Using postgresSQL"	Bug	new	Database layer (models, ORM)	2.2	Normal		F() Case() None != None	jnt.santos12@…	Unreviewed	0	0	0	0	0	0
