You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the definition of ORDER_PATTERN in django.db.models.sql.constants is:
ORDER_PATTERN=re.compile(r'\?|[-+]?[.\w]+$')
The text was updated successfully, but these errors were encountered:
WayneSan
changed the title
Invalid order_by arguments exception if the language with - symbol.
Got the Invalid order_by arguments exception if the language with - symbol.
Oct 27, 2014
It might get an
Invalid order_by arguments
exception if ordering the queryset with the translated field.For example:
Will get the exception:
Because the definition of
ORDER_PATTERN
indjango.db.models.sql.constants
is:The text was updated successfully, but these errors were encountered: