Removed Oracle NULL workaround in AreaField.

Unused since 1b1ea63f6a.
This commit is contained in:
Sergey Fedoseev 2017-04-04 07:26:33 +05:00 committed by Tim Graham
parent 7f8a924b45
commit ef8a339dfb
1 changed files with 0 additions and 2 deletions

View File

@ -36,8 +36,6 @@ class AreaField(models.FloatField):
return getattr(value, self.area_att)
def from_db_value(self, value, expression, connection, context):
if connection.features.interprets_empty_strings_as_nulls and value == '':
value = None
# If the database returns a Decimal, convert it to a float as expected
# by the Python geometric objects.
if isinstance(value, Decimal):