﻿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
32476	Django Query Generating Style Error	thajones	nobody	"var = modelname.objects.exclude( field1__isnull = True, field1__exact = '' )

print(var.query)
# select * from modelname where not ( field1 != '' and field1 is not null and field1 is null ) which is always a empty set.

Expected Query:
# select * from modelname where not ( field1 != '' and field1 is null )
OR
# select * from modelname where not ((field1 != '' and field1 is not null) and field1 is null )

which gives resultant set with non empty and not null records."	Bug	closed	Database layer (models, ORM)	3.1	Normal	invalid	Query, Missing_Brackets	jones.thayil@…	Unreviewed	0	0	0	0	0	0
