On Mon, May 26, 2008 at 11:26 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: > dates, times, and datetimes are converted to string _before_ being > passed to the backend.
Oops :) > b) Pass the backend (or its DatabaseOperations) to > Field.get_db_prep_save. We could then add a > DatabaseOperation.to_db_date(value) method, which would be called from > get_db_prep_save. In other words, date (and friends) conversion would > be delegated to the backend. This is probably the better solution, though you don't need to pass the backend into ``Field.get_db_prep_save`` since ``db_prep_save`` can get at the backend through ``django.db.connection.backend``. Jacob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---