Loading django/contrib/gis/db/models/proxy.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class GeometryProxy(object): # Assigning the SRID to the geometry. if value.srid is None: value.srid = self._field.srid elif value is None or isinstance(value, six.string_types + (memoryview,)): elif value is None or isinstance(value, six.string_types + (bytes, memoryview)): # Set with None, WKT, HEX, or WKB pass else: Loading docs/releases/1.7.2.txt +2 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,5 @@ Bugfixes * Fixed a :djadmin:`makemessages` regression in 1.7.1 when :setting:`STATIC_ROOT` has the default ``None`` value (:ticket:`23717`). * Added GeoDjango compatibility with mysqlclient database driver. Loading
django/contrib/gis/db/models/proxy.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class GeometryProxy(object): # Assigning the SRID to the geometry. if value.srid is None: value.srid = self._field.srid elif value is None or isinstance(value, six.string_types + (memoryview,)): elif value is None or isinstance(value, six.string_types + (bytes, memoryview)): # Set with None, WKT, HEX, or WKB pass else: Loading
docs/releases/1.7.2.txt +2 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,5 @@ Bugfixes * Fixed a :djadmin:`makemessages` regression in 1.7.1 when :setting:`STATIC_ROOT` has the default ``None`` value (:ticket:`23717`). * Added GeoDjango compatibility with mysqlclient database driver.