Re: why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
Ah yes - I am using mysql.  Thanks for that pointer.

Margie

On Mar 10, 1:34 pm, Karen Tracey  wrote:
> Are you using MySQL? See the note about MySQL here:
>
> http://docs.djangoproject.com/en/dev/ref/models/querysets/#exact
>
> Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: why is __exact filter really doing an inexact match?

2010-03-10 Thread Karen Tracey
Are you using MySQL? See the note about MySQL here:

http://docs.djangoproject.com/en/dev/ref/models/querysets/#exact

Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: why is __exact filter really doing an inexact match?

2010-03-10 Thread Shawn Milochik
What database are you using?

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
When I do a filter like this

 Task.objects.filter(name__exact="test")

I seem to be getting an inexact match.  IE, I get tasks whose name is
"test" as well as tasks whose name is "Test".  Same thing if I do:

Task.objects.filter(name="test")

For example:

(Pdb) for t in Task.objects.filter(name__exact="test"): print t.name

Test
test
test


I don't have any special managers and I see this both in my own model
and doing a filter using the Auth model, ie:

User.objects.get(email="margie.rogin...@gmail.com").email

gives me:
u'margie.rogin...@gmail.com'

I thought this is supposed to be a case sensitive operation - am I
missing something here?  I'm running with the 1.1 final release.

Thanks,
Margie Roginski

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.