Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

278
Vistas
how does django sort the models in django admin in chinese?

Django version: 1.10.7

I have an django app built for chinese end users.

In django admin, the models are ordered by alphabetically for English. When I switch to Chinese, the models are re-ordered.

I want to know how they are ordered and determined by which part of the Django software.

I know the line is : https://github.com/django/django/blob/1.10.7/django/contrib/admin/sites.py#L458

I still don't understand how the sorting is done for Chinese

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you're storing verbose_name_plural in UTF-8, then the modal would be sorted in UTF-8 encoding. It depends on the string encoding. Like:

>>> a=[u'甲-1', u'乙-2', u'丙-3']
>>> a.sort()
>>> a
[u'\u4e19-3', u'\u4e59-2', u'\u7532-1']
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda