Kaydet (Commit) ef8a339d authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev Kaydeden (comit) Tim Graham

Removed Oracle NULL workaround in AreaField.

Unused since 1b1ea63f.
üst 7f8a924b
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment