mirror of
https://github.com/django/django.git
synced 2025-03-03 13:34:26 +00:00
Removed unneeded check in GeometryField.from_db_value().
Unneeded since 6f43b2b8a55d72d1e8e04163ff0c2091cf6b8ce5.
This commit is contained in:
parent
d4da39685b
commit
81a453ca0f
@ -288,8 +288,7 @@ class GeometryField(GeoSelectFormatMixin, BaseSpatialField):
|
||||
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
if value:
|
||||
if not isinstance(value, Geometry):
|
||||
value = Geometry(value)
|
||||
value = Geometry(value)
|
||||
srid = value.srid
|
||||
if not srid and self.srid != -1:
|
||||
value.srid = self.srid
|
||||
|
Loading…
x
Reference in New Issue
Block a user