mirror of
https://github.com/django/django.git
synced 2025-03-31 11:37:06 +00:00
Removed Oracle NULL workaround in AreaField.
Unused since 1b1ea63f6a4784e213c059c69beccaea20bc1a92.
This commit is contained in:
parent
7f8a924b45
commit
ef8a339dfb
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user