mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[soc2009/multidb] Corrected merge error. Patch from Russell Keith-Magee.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4e25ca00c8
commit
d5e883f2e3
@ -756,12 +756,8 @@ class IntegerField(Field):
|
||||
"""Integer"""
|
||||
|
||||
empty_strings_allowed = False
|
||||
<<<<<<< HEAD:django/db/models/fields/__init__.py
|
||||
def get_prep_value(self, value):
|
||||
=======
|
||||
|
||||
def get_db_prep_value(self, value):
|
||||
>>>>>>> master:django/db/models/fields/__init__.py
|
||||
def get_prep_value(self, value):
|
||||
if value is None:
|
||||
return None
|
||||
return int(value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user