Author: mtredinnick
Date: 2007-10-20 08:01:09 -0500 (Sat, 20 Oct 2007)
New Revision: 6567

Modified:
   django/trunk/django/utils/encoding.py
Log:
Added datetime.date to the things ignored by strings_only in [6406].


Modified: django/trunk/django/utils/encoding.py
===================================================================
--- django/trunk/django/utils/encoding.py       2007-10-20 12:35:10 UTC (rev 
6566)
+++ django/trunk/django/utils/encoding.py       2007-10-20 13:01:09 UTC (rev 
6567)
@@ -31,7 +31,7 @@
 
     If strings_only is True, don't convert (some) non-string-like objects.
     """
-    if strings_only and isinstance(s, (types.NoneType, int, long, 
datetime.datetime, datetime.time, float)):
+    if strings_only and isinstance(s, (types.NoneType, int, long, 
datetime.datetime, datetime.date, datetime.time, float)):
         return s
     if not isinstance(s, basestring,):
         if hasattr(s, '__unicode__'):


--~--~---------~--~----~------------~-------~--~----~
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