Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

270
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda