Field length in ORM
|Reported by:||Gerben Oolbekkink||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Normal||Keywords:||ORM, order_by, QuerySet|
|Cc:||Josh Smeaton||Triage Stage:||Unreviewed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.