﻿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
6559	Lookups using m2m relationships return incorrect results with Sqlite on Windows	Manoj Govindan <egmanoj@…>	nobody	"Consider the following model

{{{
from django.db import models
from django.contrib.auth.models import User

class Book(models.Model):
    name = models.CharField(max_length = 255, unique = True)
    users = models.ManyToManyField(User)
}}}

m2m lookups using {{{ username }}} attribute of {{{ User }}} are returning incorrect results with Sqlite '''only on Windows'''. It seems that the filtering condition is being ignored and ''all'' books are being returned for any given username.

{{{ 
Book.objects.filter(users__username = <some username> )
}}}

as well as 

{{{ 
Book.objects.filter(users__username_exact = <some username> )
}}}

are not working properly. 

I have added tests for the same."		closed	Core (Other)	dev		fixed		egmanoj@…	Unreviewed	0	0	0	0	0	0
