--
Ticket URL: <https://code.djangoproject.com/ticket/32972>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "incorrect Point objects.png" added.
Showing what the point objects look like with a <object>.objects.raw()
query look like when doing a print(vars(object))
* Attachment "expected location after serializing.png" added.
What the the Point object should have for latitude and longitude
* status: new => closed
* resolution: => invalid
Comment:
Using `.raw()` is a last resort. Django takes a raw SQL query, executes
it, and returns results (as documented), it will not automatically add any
data conversion to columns. Geometry columns returned by the ORM are
wrapped with db-specific functions, e.g. `%s::bytea` on PostgreSQL or
`SDO_UTIL.TO_WKBGEOMETRY(%s)` on Oracle.
If you're having trouble understanding how Django works, see
TicketClosingReasons/UseSupportChannels for ways to get help.
--
Ticket URL: <https://code.djangoproject.com/ticket/32972#comment:1>