mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -40,14 +40,14 @@ class MyAutoField(models.CharField):
|
||||
value = MyWrapper(value)
|
||||
return value
|
||||
|
||||
def get_db_prep_save(self, value):
|
||||
def get_db_prep_save(self, value, connection):
|
||||
if not value:
|
||||
return
|
||||
if isinstance(value, MyWrapper):
|
||||
return unicode(value)
|
||||
return value
|
||||
|
||||
def get_db_prep_value(self, value):
|
||||
def get_db_prep_value(self, value, connection, prepared=False):
|
||||
if not value:
|
||||
return
|
||||
if isinstance(value, MyWrapper):
|
||||
|
||||
Reference in New Issue
Block a user