From ef8a339dfbe65e207c8945d114c60462a71da034 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Tue, 4 Apr 2017 07:26:33 +0500 Subject: [PATCH] Removed Oracle NULL workaround in AreaField. Unused since 1b1ea63f6a4784e213c059c69beccaea20bc1a92. --- django/contrib/gis/db/models/sql/conversion.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/contrib/gis/db/models/sql/conversion.py b/django/contrib/gis/db/models/sql/conversion.py index 299d39efdc..adae01fe50 100644 --- a/django/contrib/gis/db/models/sql/conversion.py +++ b/django/contrib/gis/db/models/sql/conversion.py @@ -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):