Author: mtredinnick
Date: 2007-05-12 10:31:52 -0500 (Sat, 12 May 2007)
New Revision: 5205

Modified:
   django/branches/unicode/tests/regressiontests/string_lookup/models.py
Log:
unicode: Added another test to make sure we don't screw up bytestrings.


Modified: django/branches/unicode/tests/regressiontests/string_lookup/models.py
===================================================================
--- django/branches/unicode/tests/regressiontests/string_lookup/models.py       
2007-05-12 15:21:33 UTC (rev 5204)
+++ django/branches/unicode/tests/regressiontests/string_lookup/models.py       
2007-05-12 15:31:52 UTC (rev 5205)
@@ -76,4 +76,8 @@
 >>> fx.save()
 >>> Foo.objects.get(viking__contains=u'\xf3')
 <Foo: Foo Bjorn>
+
+# We can also do the above query using UTF-8 strings.
+>>> Foo.objects.get(viking__contains='\xc3\xb3')
+<Foo: Foo Bjorn>
 """}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to