[py3] Allowed bytes in get_prep_value for a Geometry
This commit is contained in:
parent
43c7f8c3a3
commit
54c81a1c93
|
@ -160,7 +160,7 @@ class GeometryField(Field):
|
||||||
# from the given string input.
|
# from the given string input.
|
||||||
if isinstance(geom, Geometry):
|
if isinstance(geom, Geometry):
|
||||||
pass
|
pass
|
||||||
elif isinstance(geom, six.string_types) or hasattr(geom, '__geo_interface__'):
|
elif isinstance(geom, (bytes, six.string_types)) or hasattr(geom, '__geo_interface__'):
|
||||||
try:
|
try:
|
||||||
geom = Geometry(geom)
|
geom = Geometry(geom)
|
||||||
except GeometryException:
|
except GeometryException:
|
||||||
|
|
Loading…
Reference in New Issue