          if value is None:
              return None
          if isinstance(value, datetime.time):
              return value
  
          # Attempt to parse a datetime:
          value = smart_str(value)
          # split usecs, because they are not recognized by strptime.
          if '.' in value:
 
</s> remove                     values = [(f, None, f.get_db_prep_save(raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks]
 </s> add                     values = [(f, None, (raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks] </s> remove }
 </s> add 
        if isinstance(value, datetime.datetime):
            # Not usually a good idea to pass in a datetime here (it loses
            # information), but this can be a side-effect of interacting with a
            # database backend (e.g. Oracle), so we'll be accommodating.
            return value.time
          if value is None:
              return None
          if isinstance(value, datetime.time):
              return value
        if isinstance(value, datetime.datetime):
            # Not usually a good idea to pass in a datetime here (it loses
            # information), but this can be a side-effect of interacting with a
            # database backend (e.g. Oracle), so we'll be accommodating.
            return value.time
  
          # Attempt to parse a datetime:
          value = smart_str(value)
          # split usecs, because they are not recognized by strptime.
          if '.' in value:
keep keep keep add keep keep keep keep keep
 Fixed #10443 -- Fixed model attribute updating after r10003.

Adding a get_db_prep_save() call to the UpdateQuery code path meant it
was being called twice if you updated an existing model attribute. This
change removes that double call and also makes TimeField.to_python() a
little more robust for the benefit of the Oracle backend (just in case).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10013 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/db/models/fields/__init__.py