mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Removed unneeded check in GeometryField.from_db_value().
Unneeded since 6f43b2b8a5
.
This commit is contained in:
parent
d4da39685b
commit
81a453ca0f
1 changed files with 1 additions and 2 deletions
|
@ -288,7 +288,6 @@ class GeometryField(GeoSelectFormatMixin, BaseSpatialField):
|
||||||
|
|
||||||
def from_db_value(self, value, expression, connection, context):
|
def from_db_value(self, value, expression, connection, context):
|
||||||
if value:
|
if value:
|
||||||
if not isinstance(value, Geometry):
|
|
||||||
value = Geometry(value)
|
value = Geometry(value)
|
||||||
srid = value.srid
|
srid = value.srid
|
||||||
if not srid and self.srid != -1:
|
if not srid and self.srid != -1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue