#16455: Postgis 2.0 Compatibility
-----------------------------+------------------------------------
Reporter: ckarrie | Owner: jbronn
Type: New feature | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: postgis 2.0 | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Comment (by anonymous):
Also do you really need this (postgis_version =
self.connection.ops.spatial_version) every time running even if f is not
an instance of GeometryField or f.geography is True?
could this be a better way?
{{{
if f.geography or self.connection.ops.spatial_version >= (2, 0):
index_opts = ''
else:
....
}}}
?
The main idea here is not to do extra actions until it's really needed :)
--
Ticket URL: <https://code.djangoproject.com/ticket/16455#comment:32>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.