From e247b364472bd48cd067baa6231c14b500298a4e Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 22 Dec 2007 11:16:04 +0000 Subject: queryset-refactor: Work around the fact that "where id is NULL" can return different results in different circumstances in MySQL(!!). git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6967 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/null_queries/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/regressiontests/null_queries/models.py b/tests/regressiontests/null_queries/models.py index 739b75d96d..d6993b8be5 100644 --- a/tests/regressiontests/null_queries/models.py +++ b/tests/regressiontests/null_queries/models.py @@ -26,11 +26,11 @@ __test__ = {'API_TESTS':""" # Exact query with value None returns nothing ("is NULL" in sql, but every 'id' # field has a value). ->>> Choice.objects.filter(id__exact=None) +>>> Choice.objects.filter(choice__exact=None) [] Excluding the previous result returns everything. ->>> Choice.objects.exclude(id=None).order_by('id') +>>> Choice.objects.exclude(choice=None).order_by('id') [, ] # Valid query, but fails because foo isn't a keyword -- cgit v1.3