#7801: to_python not being called on DateField/TimeField since they don't use
Subfield metaclass
---------------------------------------------+------------------------------
 Reporter:  Andrew Magee <[EMAIL PROTECTED]>  |       Owner:  nobody    
   Status:  new                              |   Milestone:            
Component:  Database wrapper                 |     Version:  SVN       
 Keywords:                                   |       Stage:  Unreviewed
Has_patch:  1                                |  
---------------------------------------------+------------------------------
 I was having problems with TimeField's and DateField's returning datetime
 objects instead of date objects/time objects in sql server yesterday.
 This is caused by the fact that DateField and TimeField don't use the
 SubfieldBase metaclass so their to_python methods are never called.
 When i assign the metaclass everything works fine

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7801>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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