#23363: Field length in ORM
----------------------------------------------+----------------------------
Reporter: qurben | Owner: nobody
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: 1.6
Severity: Normal | Keywords: ORM, order_by,
Triage Stage: Unreviewed | QuerySet
Easy pickings: 0 | Has patch: 0
| UI/UX: 0
----------------------------------------------+----------------------------
I can order a query by field length by using {{{.extra('length':
'Length(field)')}}}, but this is a problem when targeting mssql, where the
length function is {{{LEN()}}} is it possible to add this to the ORM?
I think it would be a simple addition, and I would be very happy.
--
Ticket URL: <https://code.djangoproject.com/ticket/23363>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.3542d4e9fa400104780c0a2d2fc831fb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.