Use direct access to backend classes

issue8836
review258421002
This commit is contained in:
Nicolas Évrard
2019-12-06 17:33:47 +01:00
parent c514f46009
commit 63f0e51dbc
+1 -1
View File
@@ -26,7 +26,7 @@ class Geometry(fields.Field):
@property
def _sql_type(self):
assert backend.name() in {'postgis'}
assert backend.name in {'postgis'}
return 'GIS_%s(%s)' % (
self._geometry_type, self.dimension)