  # coding: utf-8
  from django.db import models
  from django.utils import tzinfo
  
  CHOICES = (
      (1, 'first'),
      (2, 'second'),
 
</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 
import datetime

from django.conf import settings
  # coding: utf-8
import datetime

from django.conf import settings
  from django.db import models
  from django.utils import tzinfo
  
  CHOICES = (
      (1, 'first'),
      (2, 'second'),
add keep 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 
tests/regressiontests/model_regress/models.py