﻿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
25416	Queries are displayed without values quoted	Jimmy Merrild Krag	nobody	"I am debugging some queries, and noticed an error in how my queries are printed.
What I did in my code, was:

{{{
query_set = ModelClass.objects.filter([other_filters]).exclude(field='')
}}}

The `query_set.query` then contains somthing like:

{{{
SELECT [columns] FROM [table] WHERE [other_filters] AND NOT ([table].field = ))
}}}

The QuerySet works, but note that there are no quotes around the empty string value. 

I tried with a value instead, which also does not get quoted. Even if it contains spaces.
The issue is the same if I use `.filter()` instead of `.exclude()`."	Uncategorized	closed	Database layer (models, ORM)	1.8	Normal	invalid			Unreviewed	0	0	0	0	0	0
